阅读背景:

python xml字符串_将Python XML元素树转换为字符串_weixin_39576149的博客

来源:互联网 

如何将ElementTree.Element转换为字符串?

对于Python 3:xml_str = ElementTree.tostring(xml, encoding='unicode')对于Python 3




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: