效果不错呦!
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