2018年1月19日

摘要: import xml.etree.ElementTree as ET tree = ET.parse("xmltest.xml") root = tree.getroot() print(root.tag) #遍历xml文档 for child in root: print(child.tag, child.attrib) for i in child: ... 阅读全文

posted @ 2018-01-19 08:35 阿骏骏 阅读(107) 评论(0) 推荐(0) 编辑


Copyright © 2024 阿骏骏
Powered by .NET 8.0 on Kubernetes