版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/qq_33733970/article/details/83376888
效果不错呦!
import shutil,os
if os.path.exists(os.path.join(bizimage_filepath, image_name)):
//移除文件
os.remove(os.path.join(bizimage_filepath, image_name))
//移除空文件夹
shutil.rmtree(bizimage_filepath)
参考文档,写的不错:
https://www.cnblogs.com/linyihai/p/6239067.html