Python中的装饰器decorator
By admin
- One minute read - 4 wordsPython中装饰器有些类似于java中的面向切片编程AOP的概念,就是对一些请求方法进行一些拦截,然后加入一些其实的逻辑。可以参与 https://blog.csdn.net/caimouse/article/details/78078189 这篇举的例子,很好理解。
http://wiki.jikexueyuan.com/project/the-python-study-notes-second-edition/decorator.html