提交 42aa1cda 编写于 作者: F feilong

update python

上级 3506f88f
...@@ -85,7 +85,7 @@ def fetch_text(html): ...@@ -85,7 +85,7 @@ def fetch_text(html):
```python ```python
def fetch_text(html): def fetch_text(html):
html = etree.HTML(html) html = etree.HTML(html)
result = html.xpath("//text") result = html.xpath(".//text")
return result return result
``` ```
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册