python中os关于目录创建和文件移动操作
import os, random, shutilpath="images_1"file_name_list = os.listdir(path)print("图片总数目",len(file_name_list ),file_name_list)zu_name=[]for i in file_name_list: zu_name.append(i[:3])zu_name=sorted(list(set(zu_name)))print(len(zu_