cipher=base64.decode(cipher)
报错
decode() missing 1 required positional arguement: ‘output’
在python3里需要指定其为base64.b64decode()
解决办法
According to the documentation, base64.decode takes 2 arguments: input and output.
You certainly want to use base64.b64decode(s) which returns the decoded string.
本文介绍了一个关于Python中使用base64进行解码时出现的常见错误,并提供了正确的解决方法。文中指出,在Python 3中应当使用base64.b64decode()函数来解码base64字符串。
19万+

被折叠的 条评论
为什么被折叠?



