【发布时间】:2016-08-10 10:21:33
【问题描述】:
我想在 php 中复制面向方面的编程
假设我有这样的事情:
def wrapper(func):
print ("start")
func()
print ("end")
@wrapper
def hello():
print ("hello")
php 中的等价物是什么?
【问题讨论】:
-
那会是代表吗?
标签: php python decorator python-decorators