python中删除非空文件夹
import shutil
path = ''
if os.path.exists(path):
shutil.rmtree(path)
else:
os.makedirs(path)
python中删除非空文件夹
import shutil
path = ''
if os.path.exists(path):
shutil.rmtree(path)
else:
os.makedirs(path)