程式碼:fileread2.py with open('file1.txt', 'r', encoding ='UTF-8') as f: print(f.readline()) print(f.readline(3))執行結果: Hello Python 中文字上例中以 ...
確定! 回上一頁