import os folderpath = "/etc/gtwang/my_folder" try: os.makedirs(folderpath) except FileExistsError: print("檔案已存在。") # 權限不足的例外處理 ...
確定! 回上一頁