def write_xml(tree, out_path):
    "''将xml文件写出\n       tree: xml树\n       out_path: 写出路径"
    tree.write(out_path, encoding='utf-8', xml_declaration=True)
''将xml文件写出
tree: xml树
out_path: 写出路径
def write_xml(tree, out_path):
    "将xml文件写出\n       tree: xml树\n       out_path: 写出路径"
    tree.write(out_path, encoding='utf-8', xml_declaration=True)