... print path to all filenames. for filename in filenames: print(os.path.join(dirname, filename)). 資料夾內檔案如下: 執行結果. python.
確定! 回上一頁