我有这个功能:
def crypting(self, client, access_token, client_id, client_secret, oauth_scope, redirect_uri):
标题中的错误是在这个函数中:
FCU.crypting(client = None, access_token = None, client_id, client_secret, oauth_scope, redirect_uri)
为什么? 感谢您的解决方案。
请您参考如下方法:
这就是它所说的。您不能在关键字参数之后传递非关键字参数。如果您有类似 client=None 的东西,那是一个关键字参数,所有这些都必须位于参数列表的末尾。
