摘要:
import MySQLdb#创建链接conn=MySQLdb.Connect(host='localhost',user='root',passwd='',db="xingming")#生成游标cursor=conn.cursor()#插入多条记录cursor.executemany( """INSERT INTO xm (x, m) VALUES (%s, %s)""", [ ("h","c"), ("g" 阅读全文
posted @ 2011-09-04 08:27
黄聪
阅读(693)
评论(0)
推荐(0)

浙公网安备 33010602011771号