python2 与 python3 区别 python2与python3的默认字符编码不同 python2默认编码方式是ascii码 解决方式:在文件的首行:#-*- encoding:utf-8 -*- python3 默认编码方式utf-8