#!/usr/bin/env python
# -*- coding: utf-8 -*-
import MySQLdb
#建立连接
conn = MySQLdb.connect(host='127.0.0.1',user='root',passwd='1qaz#EDC',db='test_db')
cur = conn.cursor()
#对数据进行操作
sql = "delete from user where id=%s" #定义一条删除指定ID的sql语句
params = ('3') #参数 ID为3
cur.execute(sql,params) #执行sql语句
conn.commit() #提交请求
#关闭数据库连接
cur.close()
conn.close()

售后响应及时
7×24小时客服热线
数据备份
更安全、更高效、更稳定
价格公道精准
项目经理精准报价不弄虚作假
合作无风险
重合同讲信誉,无效全额退款