摘要: 装饰器结构: def timer(func): def inner(*args,**kwargs): '''执行函数之前要做的''' re = func(*args,**kwargs) '''执行函数之后要做的''' return re return inner 简单版装饰器示例: import t 阅读全文
posted @ 2018-01-01 19:44 摇曳时光 阅读(101) 评论(0) 推荐(0)