how nested function argument in '__call__' works in class decorator in python?

前端 未结 0 1603
被撕碎了的回忆
被撕碎了的回忆 2020-12-09 17:34
class Deco:
    def __init__(self, name):
        self.name = name
    def __call__(self, test_class):
        def inner_func(whatisit):
            return whatisit
         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题