Using a class as a decorator?

后端 未结 0 2001
我在风中等你
我在风中等你 2021-02-05 20:26

I thought the following would work as a decorator

class D:
    def __init__(self, func):
        self.func = func

    def __call__(self, *args, **kwargs):
               


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