import base64 def safe_base64_decode(s): return base64.b64decode(s) if len(s)%4==0 else base64.b64decode(s+b"="*(4-len(s)%4))
你看一下下面的几个答案,其实需要判断输入的事str类型还是bite类型,如果是str你用b'='这种表述不对,只能直接用‘=’
Sign in to make a reply
渔夫先生的面包房