import:: import xml.etree.ElementTree as ET
doc:: xml.etree.ElementTree
解析
当 ==version: “1.0”== 会报错 ==xml.etree.ElementTree.ParseError: XML declaration not well-formed==,此时改为 ==version=“1.0”== 即可。
ET.dump(<xml)
: 输出 XML
2022-05-26
import:: import xml.etree.ElementTree as ET
doc:: xml.etree.ElementTree
当 ==version: “1.0”== 会报错 ==xml.etree.ElementTree.ParseError: XML declaration not well-formed==,此时改为 ==version=“1.0”== 即可。
ET.dump(<xml)
: 输出 XML