python读取mysql中数据保存至列表

# -*- coding:utf-8 -*- import MySQLdb #库名:python;表名:students conn = MySQLdb.connect(host='localhost',user='root',passwd='',db='python',charset='utf8') cursor = conn.cursor() count = cursor.execu
相关文章
相关标签/搜索