AttributeError: 'module' object has no attribute 'reader'
来源:互联网 发布:文本导入mysql 乱码 编辑:程序博客网 时间:2024/06/05 17:08
import csvreader = csv.reader(filename)#出错显示:AttributeError: 'module' object has no attribute 'reader'
# 出现这种错误的原因是:这个脚本所在的目录下有一个名叫csv.py脚本,正是因为这个csv.py的脚本导致了csv.reader()出错。解决方法是将csv.py重命名。
# 其实类似这种问题,都是因为这本目录下有脚本名与包名重名,所以造成“‘module’object has no attribute ...”
阅读全文
2 0
- AttributeError: 'module' object has no attribute 'reader'
- AttributeError: 'module' object has no attribute 'getpass'
- AttributeError: 'module' object has no attribute 'Serial'
- AttributeError: 'module' object has no attribute(转)
- AttributeError: 'module' object has no attribute 'randint'
- AttributeError: 'module' object has no attribute 'HAVE_DECL_MPZ_POWM_SEC'
- AttributeError: 'module' object has no attribute 'Serial'
- AttributeError: 'module' object has no attribute 'LabelMap'
- AttributeError: 'module' object has no attribute 'XXX'
- AttributeError: 'module' object has no attribute 'urlopen'
- AttributeError:'module' object has no attribute 'classify'
- AttributeError: ‘module’ object has no attribute’xxx’
- AttributeError: ‘module’ object has no attribute’ 问题
- AttributeError: 'module' object has no attribute 'VideoWriter_fourcc'
- AttributeError: 'module' object has no attribute 'AF_INET'
- AttributeError: 'module' object has no attribute 'VideoWriter_fourcc'
- AttributeError: 'module' object has no attribute '_base'
- AttributeError: 'module' object has no attribute 'best_partition'
- 一个程序员码农的迷茫期
- BZOJ1193: [HNOI2006]马步距离
- qt安装
- 银行排队系统模拟—数据结构
- 10_基本数据类型自动转换_强制转型_类型提升问题
- AttributeError: 'module' object has no attribute 'reader'
- mysql根据经纬度计算距离
- easyui 弹框显示列表
- Linux基础知识-1
- nefu519
- Golang的switch和select用法
- [Err] 1022
- POJ 1308 Is It A Tree? 笔记
- iOS开发算法--希尔排序