2016-07-06 35 views

回答

2

对于Python 3,encodestring是相同的不同之处在于encodestringencodebytes被弃用。在Python 2中,encodebytes不存在。

b64encode做了一个直接编码,可以使用base64字母表中的替代字符替代+/

encodebytes/encodestring不仅编码,而且在每76个字符后面和字符串末尾插入换行符。这使其适合直接插入电子邮件。它确实有而不是有一个替代字符的选项。

+0

尼斯:https://en.wikipedia.org/wiki/Quoted-printable – CristiFati

相关问题