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批量更改文件后缀名
最新推荐文章于 2023-06-30 00:51:47 发布