strs = (etree.tostring(content, encoding="utf-8", pretty_print=True, method="html"))
类型是bytes的 如何转换成String呢
strs.decode()
python etree.tostring解决xpath显示html标签无乱码
阅读 105
2023-03-10
strs = (etree.tostring(content, encoding="utf-8", pretty_print=True, method="html"))
类型是bytes的 如何转换成String呢
strs.decode()
相关推荐
精彩评论(0)