for img, img_list in duplicates.items(): if".png"in img: continue if img notin only_img and img notin like_img: only_img.append(img) like_img.extend(img_list)
# num = 0 # for root, dirs, files in os.walk(img_path): # for dir_ in dirs: # file_dir_path = os.path.join(root, dir_) # process_file(file_dir_path) # num += 1 # print("处理文件夹个数:{}".format(num))