随笔分类 -  Python

摘要:1)创建Python的MySQL连接 conn=MySQLdb.connect(host='localhost',port=3066,user='longer',passwd='longer123',db='demo') 2)通过连接获取游标 mycur=conn.cursor() 3)执行一个建表 阅读全文
posted @ 2018-04-10 10:16 longer3281 阅读(140) 评论(0) 推荐(0)