Python 內建函式 open() 可以開啟指定檔案,可以讀取、寫入和修改檔案內容。 ... line: print(line) line = f.readline().replace('\n','') #去掉換行f.close().
確定! 回上一頁