原帖由 jxncyjq 于 2009-3-16 18:15 发表
del cur 是新cur对象删除
问题不是在这,我使用了
#! /usr/bin/python
import MySQLdb as sql
conn = sql.Connection('localhost','root')
cur = conn.cursor()
cur.execute('show databases')
list = cu ...
欢迎光临 Chinaunix (http://bbs.chinaunix.net/) | Powered by Discuz! X3.2 |