[Solution found!] 循环遍历文件以读取行: with open('somefile') as openfileobject: for line in openfileobject: do_something() 文件对象是可迭代的,并在EOF之前 ...
確定! 回上一頁