1. 系统默认编码 py3.x:unicode py2.x: ascaii mac/linux:utf-8 windows:gbk 2. gbk和utf-8之间关系 gbk =decode=>unicode=encode=>utf-8 gbk:一个汉字包含2个字节 utf-8:一个汉字包含3个字节