试试这个fetchone函数conn=MySQLdb.connect(host='localhost',user='root',passwd='root',db='test',port=3306)cur=conn.cursor()cur.execute('select * from user')data = cur.fetchone()print "Database : %s " % dataconn.commit()cur.close()conn.close()