我尝试在python中使用以下代码: func = lambda: "go away" def apply(cls):cls.func()我收到了这个错误:
unbound method <lambda>() must be called with A instance as first argument
showMe4': 'function wrapper1 at 0x0C1BD150',
'showMe3': 'classmethod object at 0x0C1BF630为什么在某些类(例如myClass)中,我使用包装器(例如wrapper1)为我的函数(例如showMe4)定义自己的装饰器,它在myClass.__dict__中作为一个函数列出,而Python装饰器如@classme