import MySQLdb
con= MySQLdb.connect(host='127.0.0.1',user='root',passwd='123',db='companyname',charset='utf8')
cursor =con.cursor()
sql ="select * from name"
a = cursor.execute(sql)
row=cursor.fetchone()
print row
cursor.close()
con.close()
输出是这个 求解 (1L, u'\u5357\u4eac\u5174\u6d9b\u516c')