处理数据集python脚本(处理自己制作的数据集)
import os
class BatchRename():
'''
批量重命名文件夹中的图片文件
'''
def __init__(self):
self.path = './qiche1' # 表示需要命名处理的文件夹
def rename(self):
filelist = os.listdir(self.path) # 获取文件路径
total_num = len(filelist) # 获取文件长度
原创
2021-12-15 22:27:15 ·
574 阅读 ·
0 评论