import os
path = './test/Q1706106'
count = 1
for file in os.listdir(path):
filename,ext = os.path.splitext(file)
os.rename(os.path.join(path,file),os.path.join(path,filename+".csv"))
count+=1
python批量更改文件后缀名
最新推荐文章于 2024-04-21 10:06:38 发布