# lxml转Html from lxml import etree from HTMLParser import HTMLParser def lxml_to_html(text:etree): content = etree.tostring(text, method=‘html‘) return HTMLParser().unescape(content)
原文地址:https://www.cnblogs.com/Python-XiaCaiP/p/11929107.html
时间: 2024-10-09 23:17:55