python中binascii.Error: Invalid base64-encoded string: number of data characters (29) cannot be 1 more than a multiple of 4问题怎么解决?
Traceback (most recent call last):
File "D:\practice\python\爬虫\网易.py", line 98, in <module>
"params": get_params(json.dumps(data)),
File "D:\practice\python\爬虫\网易.py", line 38, in get_params
second = enc_params(first, i)
File "D:\practice\python\爬虫\网易.py", line 54, in enc_params
return str(b64decode(bs))
File "D:\Python\Python310\lib\base64.py", line 87, in b64decode
return binascii.a2b_base64(s)
binascii.Error: Invalid base64-encoded string: number of data characters (29) cannot be 1 more than a multiple of 4