... 夾,可指定目錄,預設為目前工作目錄 t = os.listdir() for d in t: print(d) # 檔案或資料夾名稱 # 取得完全路徑(包含檔案與資料夾名稱) print(os.
確定! 回上一頁