1. 字符编码
1.1. Python2默认为ACSII编码
1.2. Python3为Unicode
2. Unicode和UTF8和GBK编码的关系
utf8:中文3字节 GBK:中文2字节
1. 字符编码
1.1. Python2默认为ACSII编码
1.2. Python3为Unicode
2. Unicode和UTF8和GBK编码的关系
utf8:中文3字节 GBK:中文2字节
转载于:https://www.cnblogs.com/feta/p/9919254.html