参考链接为:https://stackoverflow.com/questions/17416777/why-can-i-only-use-a-reader-object-once
import csv
f=open('myfile.txt','r')
reader=csv.reader(f)
print [x for x in reader] # This outputs the contents of "myfile.txt",
# broken up by line.
print [x for x in reader] # This line prints an empty list.
你有一个正在迭代的缓冲区,你通过基本上移动指针来消耗一个缓冲区,随时读取。如果你已经读过一次,那么指针就在缓冲区的末尾,没有什么可读的。