os.remove拒绝访问解决办法

    xiaoxiao2023-10-07  107

    因为删除的时非空文件夹,所以os.remove会出现拒绝访问

     

    import shutil shutil.rmtree(file_name)即可解决
    最新回复(0)