发布网友
共1个回答
热心网友
import MySQLdb conn=MySQLdb.connect(user='root',passwd='pwd',host='127.0.0.1',db='python_test') cur=conn.cursor() cur.execute("select * from users where uid='101' and login='ong'") ##uid