import shutil
def del_html_report(path):
#删除指定文件夹
if os.path.exists(path):
shutil.rmtree(path)
else:
pass
python强制删除非空文件夹
最新推荐文章于 2024-09-11 18:01:31 发布
import shutil
def del_html_report(path):
#删除指定文件夹
if os.path.exists(path):
shutil.rmtree(path)
else:
pass