今天用python读写csv文件,总有编译错误如下:
csv_reader = csv.reader(input_file) AttributeError: module 'csv' has no attribute 'reader'
开始很不解,后来才发现我的源码的文件名为“csv.py”,所以才会有这个错误。
今天用python读写csv文件,总有编译错误如下:
csv_reader = csv.reader(input_file) AttributeError: module 'csv' has no attribute 'reader'
开始很不解,后来才发现我的源码的文件名为“csv.py”,所以才会有这个错误。