base64.b64encode() 的目的是将二进制数据转换为ASCII 安全的“文本”。但是,该方法返回一个字节类型的对象: >>> import base64 >>> base64.b64encode(b'abc') b'YWJj'
確定! 回上一頁