#-*- coding:utf-8 -*-
# 导入模块
import sqlite3
def sql_execute(inputs=[('中医妇科学','盆腔炎','N73.902%'),]):
for item in inputs:
temp=(item[0],item[1],(item[2]+"%"))
cu.execute("update record set xueke=?, bingzhong=? where ywid like ?", temp)
cx.commit()
# 创建/打开数据库
cx = sqlite3.connect("sys.db")
cx.text_factory = str
# 定义一个游标
cu = cx.cursor()
# 修改
# '''
inputs = [('中医妇科学','输卵管阻塞不孕','N97.100')]
sql_execute(inputs)