如何将ElementTree.Element转换为字符串? 对于Python 3:xml_str = ElementTree.tostring(xml, encoding='unicode')对于Python 3 你的当前访问异常,请进行认证后继续阅读剩余内容。 提交