编码
.encode 编码
代码演示:
wpon = '夏柔'.encode() print(wpon) 输出结果: b'\xe5\xa4\x8f\xe6\x9f\x94'
.decode 解码
wpon = b'\xe5\xa4\x8f\xe6\x9f\x94'.decode() print(wpon) 输出结果: 夏柔
文章采用创作共用版权 CC BY-NC-ND/2.5/CN 许可协议,与本站观点无关。
如果您认为本文侵犯了您的版权信息,请与我们联系修正或删除。 投诉邮箱wpsite@aliyun.com