用python连接数据库并操作
from re import findall, MULTILINE
from sqlite3 import *
def find_employees(prefix):
employees_db = connect('employees.db')
employees_view = employees_db.cursor()
query = "select * from employees where first_name LIKE '{}%' OR last_name LIKE '{}%'".format(prefix, prefix)
#print(query)
employees_view.execute(query)
rows = employees_view.fetchall()
return rows
a = find_employees("Teit")
print(a)