摘要:
Then what's really happening is TWO different sections of memory are being allocated. It's done at one time, but it's two "logical" blocks. One is the 阅读全文
posted @ 2016-11-08 18:01
abelian
阅读(229)
评论(0)
推荐(0)
摘要:
装饰器本质上是一个Python函数,它可以让其他函数在不需要做任何代码变动的前提下增加额外功能,装饰器的返回值也是一个函数对象。它经常用于有切面需求的场景,比如:插入日志、性能测试、事务处理、缓存、权限校验等场景。装饰器是解决这类问题的绝佳设计,有了装饰器,我们就可以抽离出大量与函数功能本身无关的雷 阅读全文
posted @ 2016-11-08 11:20
abelian
阅读(118)
评论(0)
推荐(0)
浙公网安备 33010602011771号