详解 Python 读写XML文件的实例 详解Python读写XML文件的实例Python生成XML文件fromxml.domimportminidom#生成XML文件方式defgenerateXml(): 读写XML的实现方法