摘要: 1. encode encode将字符串转换为bytes类型的对象 (即b为前缀, bytes类型), 即Ascll编码, 字节数组 >>> a0 = '哈哈' >>> b = a0.encode() >>> type(b) <class 'bytes'> >>> >>> b b'\xe5\x93\ 阅读全文
posted @ 2021-01-29 12:34 你的小可爱吖 阅读(1365) 评论(0) 推荐(0) 编辑