2) 刪除空的目錄: os.rmdir() 3) 刪除空的目錄及子目錄: os.removedirs() 3) 刪除目錄及其子目錄中的檔案:shutil.rmtree(). rmtree 異常處理:.
確定! 回上一頁