在Python 3.3之前, 請使用如下import. ... tree=ET.ElementTree(file="tree.xml") root=tree.getroot() print("%s,%s" % (root.tag, root.attrib)) ...
確定! 回上一頁