摘要: 一.python2 python2中默认以ASCII编码 二.python3 python3文本默认是以Unicode编码 编码就是将字符串转变为byte,解码就是byte转变为str,str是unicode,byte具体看以什么类型编码的 gbk编码中汉字占2个字节,utf8中占3个字节 感觉此处 阅读全文
posted @ 2018-08-27 00:13 sfencs 阅读(304) 评论(0) 推荐(0)