path_file ='F:/zmz/self_dataset/self_image/'
topath = 'F:/zmz_experiment_data/dataset/train_large/'
for dname in os.listdir(path_file):
dpath = os.path.join(path_file,dname) + '/'
for fname in os.listdir(dpath):
fpath = os.path.join(dpath,fname) + '/'
for img in os.listdir(fpath):
img_path = os.path.join(fpath,img)
print(img_path)
copy(img_path,topath)
将特定目录下的文件copy到另外目录下
最新推荐文章于 2024-09-29 09:18:33 发布
761

被折叠的 条评论
为什么被折叠?



