摘要:
TLS 先说TLS( Thread Local Storage), wiki上是这么解释的: Thread-local storage (TLS) is a computer programming method that uses static or global memory local to 阅读全文
posted @ 2016-05-04 17:52
tommy.yu
阅读(613)
评论(0)
推荐(0)
摘要:
1. 修改类函数。 场景: 如果要给一个类的所有方法加上计时,并打印出来。demo如下: 好处相比函数修饰器要稍微简洁一点(在类有很多方法时) 2. 增加类成员 场景:比如统一给所有的模型增加id, created_time属性 or 转载请注明来自:http://www.cnblogs.com/T 阅读全文
posted @ 2016-05-04 11:13
tommy.yu
阅读(3151)
评论(0)
推荐(0)

浙公网安备 33010602011771号