pymysql报AttributeError: module 'pymysql' has no attribute 'connect'

时间:2018-09-13 16:25:06   收藏:0   阅读:1490

错误

AttributeError: module pymysql has no attribute connect

有道翻译

AttributeError:模块pymysql没有属性Connect

难道没安装成功?点击也能看源码啊

解决:

找了半天才发现文件名起成包的名字而造成的问题,记住文件名一定不能起成和包名字相同。

 

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!