摘要: 1 import os, sys, string 2 import MySQLdb 3 try: 4 conn = MySQLdb.connect(host='localhost',user='root',passwd='wangmoon',db='hello') 5 except Exception, e: 6 print e 7 sys.exit() 8 cur... 阅读全文
posted @ 2012-10-26 15:01 sunny5156 阅读(207) 评论(0) 推荐(0)