直接readlines(),怕文件太大(且含有'\n'的空行) ... with open("file") as fh: line = fh.readline() while line: print(line.strip()) line ...
確定! 回上一頁