py2 只有两种数据类型 一种是bite ,一种是unicode 这两种区分的不是很明显,在ASCII里面有的字符两种是可以拼接(隐士的转换),在ASCII以外的不能拼接,这就时它的毛病
PY3 对bite (二进制) 和 str 做出了明确的区分,文本是以str来储存的,二进制是用bite来存的
(py3 bite 不能和str 拼接,( py2会隐士转换),py3会报错)
PY3 只有两种类型 str 以unicode万国码, utf-8 和 gbk 都是以16进制bite 类型储存的,各子有个子的转换方式,首先要弄清需要转码的格式是什么。