其寫法如下: import os #匯入 os 套件......變數= os.path.isfile("檔案路徑") #判斷檔案是否存在變數= os.path.isdir("目錄路徑") #判斷目錄是否存在範例 ...
確定! 回上一頁