import csv
file = csv.reader() #返回一个以行为元素的迭代器用于遍历
这种方法比使用open更好,其可以直接按照行对csv文件分段
csv模块
原文:https://www.cnblogs.com/lixin2011/p/14043043.html