摘要: 1. 从字符串解析HTML或XML: ```python from lxml import etree # 解析HTML html = "<html><body><h1>Hello World</h1></body></html>" tree = etree.HTML(html) # 解析XML x 阅读全文
posted @ 2023-12-06 20:33 code星 阅读(95) 评论(0) 推荐(0)