import os
import shutil
train_filenames=os.listdir("tran")
train_cat=filter(lambda x:x[:3]=="cat",train_filenames)
train_dog=filter(lambda x:x[:3]=="dog",train_filenames)
def rarf_mkdir(dirname):
if os.path.exists(dirname):
shutil.retree(dirname)
os.mkdir(dirname)
"cats" vs "dogs"
最新推荐文章于 2023-02-11 13:57:12 发布