初级小错误

今天用python读写csv文件,总有编译错误如下:

  csv_reader = csv.reader(input_file)  AttributeError: module 'csv' has no attribute 'reader'

开始很不解,后来才发现我的源码的文件名为“csv.py”,所以才会有这个错误。

posted on 2018-07-07 08:37  bstore  阅读(76)  评论(0)    收藏  举报