摘要: 1 #!/usr/bin/env python 2 # -*- coding: utf-8 -*- 3 #encode 编码 decode 解码 4 #GBK 编码: 全称是“《汉子内码扩展规范》” 双字节编码 5 s = "中文字符串" 6 bs = s.encode("utf-8") 7 cs = s.encode("GBK") 8 print("{} 的utf-8 编码是... 阅读全文
posted @ 2017-11-07 15:32 hayden__wang 阅读(213) 评论(0) 推荐(0) 编辑