close() # 檔案不存在的例外處理 except FileNotFoundError: print("檔案不存在。 ... 到),以及例外處理的程式碼即可: import os folderpath = "/etc ...
確定! 回上一頁