Python 中readline()每次读取文件中的一行,需要使用永真表达式循环读取文件。 ... line = f.readline() if line: print (line) else: break f.close().
確定! 回上一頁