Read line by line, not the whole file: for line in open(file_name, 'rb'):. # process line here. Even better use with for automatically closing the file:.
確定! 回上一頁