摘要: 1. 无参装饰器(无函数返回值) import time def timer(func): ''' prints function time ''' def wrapper(): start = time.time() func() print('function %s run time %s' % 阅读全文
posted @ 2021-12-29 00:51 我不知道取什么名字好 阅读(38) 评论(0) 推荐(0)