python学习(二) ElementTree解析、读写、创建xml文件

python学习(二) 读写xml文件 1.xml格式 将其存储为sample.xml  Tag:使用<>包围的部分  Element:被Tag包围的部分,例如22中的22  Attribute:在Tag中可能存在的name/value对,如'name':'Blue' 2.解析XML 以下都是使用ElementTree处理XML  from xml.etree import ElementTree
相关文章
相关标签/搜索