python批量去掉xml文件的头部或修改头部、解决编码错误问题
# -*- coding: utf-8 -*-
'''
@Author: syj
@File: gai_xml.py
@Time: 2022/04/13 15:05:21
'''
#!/usr/bin/python
import os
def listFiles():
fileDir = r"C:\Users\syj\Desktop\111\test1\xml"
fileList = []
for root, dirs, files in os.walk(fileDir):
原创
2022-04-13 15:41:10 ·
723 阅读 ·
0 评论