os.path.isfile() 確認路徑是否為檔案. import os. os.path.isfile('filename') #回傳Ture/False 表示路徑是否為檔案,可使用相對路徑.
確定! 回上一頁