XPath 解析对象

普通字符串数据需要将其初始化生成XPath解析对象才能利用XPath解析
from lxml import etree

text='''

'''
html=etree.HTML(text) #初始化生成一个XPath解析对象

你可能感兴趣的:(XPath 解析对象)