Can we call a function based on its decorator?

前端 未结 0 987
逝去的感伤
逝去的感伤 2020-11-21 07:58

Is there a way to call a function with a specific attribute? I was thinking something like this...

def this_one(f):
    f()

class A:
    def a(self):
                


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