摘要: 1 #coding=utf-8 2 import sys 3 import MySQLdb 4 5 class TransferMoney(object): 6 def __init__(self,conn): 7 self.conn = conn 8 9 #检... 阅读全文
posted @ 2015-08-30 22:01 北京流浪儿 阅读(5383) 评论(0) 推荐(0) 编辑
摘要: 1 #coding=utf-8 2 import MySQLdb 3 conn = MySQLdb.Connect(host = '127.0.0.1',port=3306,user='root',passwd='',db='test',charset='utf8') 4 cursor = con... 阅读全文
posted @ 2015-08-30 22:00 北京流浪儿 阅读(512) 评论(0) 推荐(0) 编辑
摘要: 1 #coding=utf-8 2 import MySQLdb 3 conn = MySQLdb.Connect(host = '127.0.0.1',port=3306,user='root',passwd='',db='test',charset='utf8') 4 cursor = con... 阅读全文
posted @ 2015-08-30 21:59 北京流浪儿 阅读(733) 评论(0) 推荐(0) 编辑
摘要: #coding=utf-8import MySQLdbconn = MySQLdb.Connect(host = '127.0.0.1',port=3306,user='root',passwd='',db='test',charset='utf8')cursor = conn.cursor()sq... 阅读全文
posted @ 2015-08-30 21:58 北京流浪儿 阅读(221) 评论(0) 推荐(0) 编辑