Python ElementTree保存xml保留属性原始顺序补丁

时间:2022-05-09 08:58:55
【文件属性】:
文件名称:Python ElementTree保存xml保留属性原始顺序补丁
文件大小:2KB
文件格式:ZIP
更新时间:2022-05-09 08:58:55
XML Python ET 排序 Python自带的ElementTree保存xml时不会保留节点属性的原始顺序,会重新排序。 这里提供一个Monkey Patch使ElementTree保存xml时能够保留节点属性的原始顺序,附有sample。
【文件预览】:
MonkeyPatchForElementTree
----__init__.py(0B)
----Patch.py(2KB)
PatchTest.py

网友评论

  • 不行 改变了顺序