Python3 包含 == 的 var 的 Base64 解码

Python3 Base64 decode of a var containing ==

所以我得到了一串:
YDNhZip1cDg1YWg4cCFoKg==
需要使用 Python 的 Base64 模块进行解码。

我写了代码

import base64

test = 'YDNhZip1cDg1YWg4cCFoKg=='
print(test)
print(base64.b64decode(test))

给出了答案
b'`3afup85ah8p!h'
当,根据我使用的网站解码器,它真的

`3afup85ah8p!h

我猜它正在解码额外的引号。
有什么方法可以用定界符保存这个变量,作为另一种类型的变量,或者 运行 字符串的一部分上的 b64encode 因为 slice 似乎不起作用?

b' 是 Python 从字节分隔数据的方式,参见:What does the 'b' character do in front of a string literal?

也就是说,它正在正确解码。