黄聪

论SEO对人类的重要性,请看我的博客:hcsem.com

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

2011年9月4日

摘要: 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 黄聪 阅读(680) 评论(0) 推荐(0) 编辑

摘要: 今天下载了MySQL-python-1.2.2.win32-py2.6.rar 想试试python的数据库操作,但是安装时错误下面是报错截图:修改__init__.py:*注释第34行: from sets import ImmutableSet*在后面一行添加: ImmutableSet = frozenset*注释第41行e: from sets import BaseSet*在后面一行添加: BaseSet = set##### __init__.py#Line 35#from sets import ImmutableSet #class DBAPISet(ImmutableSet): 阅读全文
posted @ 2011-09-04 01:48 黄聪 阅读(2316) 评论(0) 推荐(0) 编辑