摘要:一.触发器 trigger 对用户某张表的数据进行 增删改 操作时的前后行为。 1.创建触发器:(before/after insert/delete on 表名 for each row) 格式: create trigger 触发器名字 before insert on 表名 for each
阅读全文
摘要:1.生成器版的任务切换 import time def jishi1hao(): for i in range(11): # print('到这里来!') yield #帮我们记录了任务的执行状态 time.sleep(1) print('%s号客户2秒就搞定'%i) def jishi2hao()
阅读全文
摘要:进程模块 process #方式一: from multiprocessing import Process import time def func1(): time.sleep(2) print("我是func1") def func2(): time.sleep(3) print("我是fun
阅读全文
摘要:from multiprocessing import Process,Lock import time def show_ticket(i): with open("file","r",encoding="utf-8") as f: num=f.read().strip() print("%s客户
阅读全文