摘要: 都是照着说明文档来的,主要是为了以后忘记了能快一点想起来。1. 连接安装MySQL的时候,自动按照了Python的模块,如果没有的话,也可以在官网下载。看什么都不如看代码来得快:import mysql.connectorconn=mysql.connector.connect(user='demo',password='123456',host='127.0.0.1',database='demo')c=conn.cursor()c.execute('show tables')c.fetchall()c.clos 阅读全文
posted @ 2013-08-29 23:52 zhizhou 阅读(2196) 评论(1) 推荐(2) 编辑