例如,建立hello.txt 檔案(首先建立python/ch13 目錄),並輸入以下資料: ... line in infile.readlines(): # 一次讀取所有資料,再一行一行處理print(line, end='') ...
確定! 回上一頁