用xml.dom.minidom. from xml.dom import minidom prettyXmlString = minidom.parseString(ET.tostring(root)).toprettyxml(indent='\t').
確定! 回上一頁