How to apply decorators to lambdas?

后端 未结 2 1247
-上瘾入骨i
-上瘾入骨i 2020-12-10 01:03

Is there any syntax for using a decorator on a lambda function in Python? Example:

def simpledecorator(f):
     def new_f():
         print \"Using a decorat         


        
2条回答
提交回复
热议问题