报错内容:TypeError: expected bytes-like object, not str
例:
a = base64.b64encode(temp)
改为:
a = base64.b64encode(bytes(temp, 'utf-8'))
问题解决!
报错内容:TypeError: expected bytes-like object, not str
例:
a = base64.b64encode(temp)
改为:
a = base64.b64encode(bytes(temp, 'utf-8'))
问题解决!