标签: python csv module
我在阅读csv文件时遇到错误“example.csv”,下面是相同的代码:
import csv with open('example.csv') as csvfile: readCsv=csv.reader(csvfile, delimiter=',') for row in readCsv: print row
我得到的错误是:
AttributeError: 'module' object has no attribute 'reader'