def zhuangshi(func): def hello1(*args,**kwargs): print(kwargs) func(*args,**kwargs) return hello1 @zhuangshi def hello(name,*args,**kwargs): print('hello') hello("hello",string=1)
# def zhuangshi(func): # def hello1(): # print('nihao') # func() # return hello1 # # @zhuangshi def hello(): print('hello') hello()
包含闭包的知识