for each_f,each_g in f,g : line_f = each_f.split() line_g = each_g.split()
我对python有点新,但我想我能做到这一点.如果这是不可能的,是否有一个等效的方法? (我正在阅读的两个文件非常大)
import itertools # ... for each_f,each_g in itertools.izip(f,g): # ...