Python中的装饰器decorator

Python中装饰器有些类似于java中的面向切片编程AOP的概念,就是对一些请求方法进行一些拦截,然后加入一些其实的逻辑。可以参与https://blog.csdn.net/caimouse/article/details/78078189这篇举的例子,很好理解。

http://wiki.jikexueyuan.com/project/the-python-study-notes-second-edition/decorator.html

 

1 thought on “Python中的装饰器decorator

  1. Pingback: more info

Comments are closed.