提交 3506f88f 编写于 作者: F feilong

update python

上级 71669bed
...@@ -76,7 +76,7 @@ def fetch_text(html): ...@@ -76,7 +76,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("//p/text") result = html.xpath(".//p/text")
return result return result
``` ```
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册