Loop over the file to read lines: with open('somefile') as openfileobject: ... 'rb') as f: while True: line = f.readline() if not line: break process(line).
確定! 回上一頁