mport MySQLdbtry: conn=MySQLdb.connect(host='localhost',port=3306,user='root',passwd='123456') cur=conn.cursor() cur.execute('create database if not exists ...【阅读全文】
出错现象:Traceback (most recent call last): File "./mongo_lock", line 11, in ? import simplejson as json File "/usr/lib/python2.4/site-packages/simplejson-2.5.0-py2.4-linux-x86_64.egg/simplejson/__init__.py", line 112, in ? from encoder import JSONEncoder...【阅读全文】