python 记录 @相关

 需要重新编辑!

def funA(funB):
print "a"
return funB

@funA
def funB(w):
print "b"

def funB(w):
print "c"

funB(1)

输出的是 a
     c
     
改变自己
原文地址:https://www.cnblogs.com/sun-shadow/p/9682852.html