摘要: import xml.etree.ElementTree as ET tree = ET.parse("xml_test") root = tree.getroot() # print(root.tag)#打印根标签 # #遍历xml文档 # for child in root: # print(child.tag,child.attrib) # for i in child:... 阅读全文
posted @ 2019-10-10 17:51 测试的世界很精彩 阅读(246) 评论(0) 推荐(0) 编辑