1. python 与mysql 连接及操作,直接上代码,简单直接高效: import MySQLdb try: conn = MySQLdb.connect(host='localhost',user='root',passwd='×××××',db='test',charset='utf8') cur = conn.cursor() cur.execute('create table user(id int,name varchar(20))' ) value = [,'jkmiao'] c…