os.listdir 只返回相對給定資料夾 dirPath 的相對路徑,但是函式 os.path.isfile 需要的是完整資料夾路徑來檢查輸入是不是檔案,所以我們需要用函式 os.path.join 來把 ...
確定! 回上一頁