mysql与python交互(二)

增长 建立testInsert.py文件,向学生表中插入一条数据 import pymysql try: conn=MySQLdb.connect(host='localhost',port=3306,db='test1',user='root',passwd='mysql',charset='utf8') cs1=conn.cursor() count=cs1.execu
相关文章
相关标签/搜索