From 3506f88f9e8dbb1e048b3328d543ea1dd22a83e2 Mon Sep 17 00:00:00 2001 From: feilong Date: Fri, 14 Jan 2022 17:39:40 +0800 Subject: [PATCH] update python --- .../4.lxml/get_html_p.md" | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git "a/data/2.python\344\270\255\351\230\266/3.\347\275\221\347\273\234\347\210\254\350\231\253/4.lxml/get_html_p.md" "b/data/2.python\344\270\255\351\230\266/3.\347\275\221\347\273\234\347\210\254\350\231\253/4.lxml/get_html_p.md" index f636846..603209d 100644 --- "a/data/2.python\344\270\255\351\230\266/3.\347\275\221\347\273\234\347\210\254\350\231\253/4.lxml/get_html_p.md" +++ "b/data/2.python\344\270\255\351\230\266/3.\347\275\221\347\273\234\347\210\254\350\231\253/4.lxml/get_html_p.md" @@ -76,7 +76,7 @@ def fetch_text(html): ```python def fetch_text(html): html = etree.HTML(html) - result = html.xpath("//p/text") + result = html.xpath(".//p/text") return result ``` -- GitLab