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.