直接readlines(),怕文件太大(且含有'\n'的空行) ... with open("file") as fh: line = fh.readline() while line: ... 我回答過的問題: Python-QA.
確定! 回上一頁