您可以直接查找文件。例如:
>>> f = open("csv.txt")>>> c = csv.reader(f)>>> for row in c: print row['1', '2', '3']['4', '5', '6']>>> f.seek(0)>>> for row in c: print row # again['1', '2', '3']['4', '5', '6']
欢迎分享,转载请注明来源:内存溢出
您可以直接查找文件。例如:
>>> f = open("csv.txt")>>> c = csv.reader(f)>>> for row in c: print row['1', '2', '3']['4', '5', '6']>>> f.seek(0)>>> for row in c: print row # again['1', '2', '3']['4', '5', '6']
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)