摘要: 1 s = 'alex' 2 print(s.encode('utf-8')) # 编码 encode('utf-8') utf-8 是指定要编码成什么样的编码类型 3 print(s1.decode('utf-8')) # 4 bytes 5 b'alex' 6 7 s = '饿了' 8 s1 = 阅读全文
posted @ 2018-08-02 15:35 心跳+ 阅读(366) 评论(1) 推荐(0)
-->