xml中俩种解析方式

两种解析方式 1、from xml.etree import ElementTree as ET  利用ElementTree模块下的xml方法可以把一个字符串类型的东西转换成Element类,从而利用Element类下面的方法 xml(字符串)解析方式只能读不能写 from xml.etree import ElementTree as ET # 打开文件,读取XML内容 str_xml =
相关文章
相关标签/搜索