📅  最后修改于: 2022-03-11 14:47:04.440000             🧑  作者: Mango
代码示例1
import xml.etree.ElementTree as ET
my_namespaces = dict([node for _, node in ET.iterparse('file.xml',
events=['start-ns'])])