摘要: def dictfetchall(cursor): "将游标返回的结果保存到一个字典对象中" desc = cursor.description return [ dict(zip([col[0] for col in desc], row)) for row in cursor.fetchall( 阅读全文
posted @ 2017-01-09 00:51 aloneOnWorld 阅读(1210) 评论(0) 推荐(0) 编辑