摘要:
def add(): print('开始添加用户') info_dic = {} user_id = input('请输入用户编号>>>:').strip() # 判断用户编号是否存在 for i1 in info_lis: if user_id in i1['user_id']: print('用 阅读全文
posted @ 2021-11-17 20:06
Joshua_jiaxue
阅读(45)
评论(0)
推荐(0)
摘要:
从简单到复杂的装饰器 1. 装饰器简易版本 给装饰器添加统计函数执行时间的功能。 import time def index(): time.sleep(2) print('赌场开业,在线发牌') def outer(func): def get_time(): start_time = time. 阅读全文
posted @ 2021-11-17 17:27
Joshua_jiaxue
阅读(53)
评论(0)
推荐(0)