toprettyxml. (indent= " "). # print our newly created xml to d:\out.xml. with open("d:\out.xml", "w") as f: f.write(doc. toprettyxml.
確定! 回上一頁