python中的cursor[备忘]
import MySQLdbconn = MySQLdb.connect(host='localhost', user='root', passwd='123456, db='dbname', charset='utf8')cursor = conn.cursor()cursor.execute(sql)成功result为1;失败为0。此时,cursor就是一个Cursor对象,这个curs...