Python删除指定路径下的文件

路径为非空时可以用shutil包


import shutil

shutil.rmtree(r' E:/DeepLearning/Git/cnn/log3_0614')


猜你喜欢

转载自blog.csdn.net/sunflower_sara/article/details/80701226
今日推荐