import shutil shutil.rmtree('/folder_name') 标准库参考:shutil.rmtree。 ... 还要注意,即使目录为空,os.remove也会再次失败,因为正确的功能是os.rmdir。
確定! 回上一頁