摘要: >>>cur.execute("select * from 表名") >>>lines=cur.fetchall() >>>for line in lines: print(line) >>>cur.scroll(1) 游标上移一个位置 阅读全文
posted @ 2018-10-28 23:52 香蕉都驼背 阅读(423) 评论(0) 推荐(0) 编辑
摘要: 1、cmd pip3 install PyMySQL2、>>>import pymysql3、mysql>create database bookdb character set utf8;4、>>>conn=pymysql.connect(host='localhost',port=3306,us 阅读全文
posted @ 2018-10-28 23:46 香蕉都驼背 阅读(525) 评论(0) 推荐(0) 编辑