摘要: Python2.6.6的ElementTree输出xml中汉字变成&#xxxx的问题:# coding: gbkimport xml.etree.ElementTree as ET rootelem = ET.Element("SystemList")organization = ET.SubElement(rootelem, "Organization") organization.attrib["label"] = "<空>"organization.attrib["id" 阅读全文
posted @ 2013-05-22 18:28 叮叮当当 阅读(1631) 评论(0) 推荐(0) 编辑