摘要: xml.etree.ElementTree的常用API 1、解析xml 读取xml的两种方式: element对象的常用属性: 1. tag:string对象,表示标签内容。 2. attrib:dictionary对象,表示标签的属性。 3. text:string对象,表示element的内容。 阅读全文
posted @ 2018-08-16 16:32 blackx 阅读(191) 评论(0) 推荐(0) 编辑