![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python
文章平均质量分 75
XSysvermin_Li
这个作者很懒,什么都没留下…
展开
-
Python下使用MySQLdb连接MySQL出错的解决办法(一)
我采用的是MySQLdb操作的MYSQL数据库。先来一个简单的例子吧:import MySQLdbtry: conn=MySQLdb.connect(host='127.0.0.1',user='root',passwd='mysql2014',db='spider',port=3306) cur=conn.cursor() cur.execute('select * from t_u原创 2014-07-04 11:59:47 · 1235 阅读 · 0 评论 -
Python操作MySQL数据库--插入、更新、查询(二)
在我采用的是MySQLdb操作的MYSQL数据库原创 2014-07-04 14:16:53 · 608 阅读 · 0 评论