python3连接mysql
摘要:
#!/usr/bin/python3 import pymysql conn = pymysql.connect(host='10.60.10.11',port=3306,user='root',passwd='xxxxx',db='haoxx') cur = conn.cursor() cur.execute("select car_id,car_name from car where... 阅读全文
posted @ 2017-05-27 18:30 vijayfly 阅读(241) 评论(0) 推荐(0) 编辑