python是一种可以将方法作为变量传递的语言,所以可以使用装饰器

def aa(p):
    print(p)
bb = aa
c = bb('asdfadfjasfd')

是可以输出的

原文地址:https://www.cnblogs.com/DDBD/p/13679939.html