2013年1月30日

自己实现的一个针对MySQL的Python 数据库组建

摘要: #-*- coding:utf8 -*-import MySQLdbimport dbhashclass DbManager(): dbConf = { 'host': 'localhost', 'user': '用户', 'password': '数据库密码', 'db_name': '数据库名称', 'port': 3306, 'charset': 'utf8', } def connect(self): #获取数据 阅读全文

posted @ 2013-01-30 11:37 空山幽泉 阅读(233) 评论(0) 推荐(0) 编辑

导航