python lxml笔记

来源:互联网 发布:家具画图软件 编辑:程序博客网 时间:2024/05/01 11:21

pretty_print=True在命令行有时候无效。

etree.tostring(br,with_tail=False)仅对当前项有用。

etree.XPath("//text()")  返回列表里不是普通的str是<class 'lxml.etree._ElementStringResult'>对象。


原创粉丝点击