Jam*_*mes 9 python xml elementtree
你如何ElementTree在Python中获得字符串的来源?
ElementTree
unu*_*tbu 8
import xml.etree.ElementTree as ET tree = ET.parse(source) root = tree.getroot() ET.tostring(root)
请注意,source和的内容之间可能存在格式差异ET.tostring(doc).
source
ET.tostring(doc)
归档时间:
13 年,10 月 前
查看次数:
7037 次
最近记录:
7 年,5 月 前