python xxx.pypython
SyntaxError: Non-ASCII character '\xe4' in file xxx.py on line 1, but no encoding declared;ide
see http://python.org/dev/peps/pep-0263/ for detailsutf-8
这是python2默认不支持中文get
须要在.py代码前面加上it
#coding=utf-8class
#-*- coding:utf-8 -*- 官方推荐这种coding