python查询mysql,返回json的实例
如下所示:importMySQLdbimportjsondefgetSql():try:con=MySQLdb.connect(host='localhost',user='',passwd='',db='test',c
python查询mysql
如下所示:importMySQLdbimportjsondefgetSql():try:con=MySQLdb.connect(host='localhost',user='',passwd='',db='test',c