XML文件处理
百事可乐_ouyjb95
这个作者很懒,什么都没留下…
展开
-
XML处理之修改xml的坐标信息
import os from xml.etree.ElementTree import parse, Element out_dir = r'C:\Users\jiabin.ouyang\Desktop\result' ##这里是保存的目标文件夹 b = os.listdir(r'C:\Users\jiabin.ouyang\Desktop\test_xml') c = r'C:\Users\jiabin.ouyang\Desktop\test_xml' rect={} line="" for i in原创 2020-09-17 21:26:55 · 973 阅读 · 0 评论 -
XML处理之修改xml中的名字和路径信息
import xml.dom.minidom import os import sys import xml.etree.ElementTree as ET from lxml.etree import Element, SubElement, tostring from xml.dom.minidom import parseString src_path = r'C:\Users\jiabin.ouyang\Desktop\plunger xml' save_path1 = r"C:\Users\j原创 2020-09-17 21:18:20 · 507 阅读 · 0 评论 -
XML文件处理之对相同.xml的后缀分类
import xml.dom.minidom import os import sys import xml.etree.ElementTree as ET from lxml.etree import Element, SubElement, tostring from xml.dom.minidom import parseString src_path = r'C:\Users\jiabin.ouyang\Desktop\plunger xml' save_path1 = r"C:\Users\j原创 2020-09-17 21:07:23 · 252 阅读 · 0 评论 -
XML文件处理之修改xml文件名
import xml.dom.minidom import os import sys import xml.etree.ElementTree as ET path= r"C:\Users\jiabin.ouyang\Desktop\test_xml" # xml文件存放路径 sv_path= r"C:\Users\jiabin.ouyang\Desktop\result" # 修改后的xml文件存放路径 files = os.listdir(path) for xmlFile in files:原创 2020-09-17 21:04:22 · 1003 阅读 · 0 评论