class Test:
    def dealLogin(self, count):
        def decorator(func):
            def wrapper(self, *args, **kwargs):
                pass
                return func(self, *args, **kwargs)

            return wrapper

        return decorator

    def saveBidEvaluation(self, projectId, projectType):
        pass

下面的方法调用装饰器怎么传 self 啊


↙↙↙阅读原文可查看相关链接,并与作者交流