Python3中出现Non-UTF-8 code starting with的错误

Python3默认使用utf-8的编码格式,如果出现

Non-UTF-8 code starting with '\xe7'的错误,可以在程序的最顶部加上 # -*- coding:utf-8 -*-

即可。