随笔分类 -  python xml解析

摘要:XMl文件参考: 阅读全文
posted @ 2019-07-04 14:47 小金儿 阅读(3985) 评论(0) 推荐(0) 编辑
摘要:2、手动写一个xml文件 3、通过字典数据 存成xml文件 4、使用etree的方式解析xml文件 ''' 直接解析XML文件并获得根节点 tree = ET.parse(xmlFilePath) root = tree.getroot() 解析字符串 root = ET.fromstring(fp 阅读全文
posted @ 2019-04-20 16:45 小金儿 阅读(5884) 评论(0) 推荐(1) 编辑

点击右上角即可分享
微信分享提示