From 4e77a55866c98a8561abe84bae440c0034ca699a Mon Sep 17 00:00:00 2001 From: pbqs4lvtu <1779073549@qq.com> Date: Wed, 17 Apr 2024 14:13:16 +0800 Subject: [PATCH] Delete 'X.py' --- X.py | 18 ------------------ 1 file changed, 18 deletions(-) delete mode 100644 X.py diff --git a/X.py b/X.py deleted file mode 100644 index 88011f8..0000000 --- a/X.py +++ /dev/null @@ -1,18 +0,0 @@ -from lxml import etree -html=""" - -
-

Page Title

-

Some text.

-

Section 1

-

More text.

-

Section 2

-
- -""" -from lxml import etree -selector = etree.HTML(html) -#修改xpath表达式 -result = selector.xpath('//h2') -print(result) -printf(selector) \ No newline at end of file