SyntaxError: Non-ASCII character '\xe5' in file a.py on line 9, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details

SyntaxError: Non-ASCII character ‘\xe5‘ in file a.py on line 9, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details

 

在文件头部加:

 

#-*-coding:utf-8-*-

SyntaxError: Non-ASCII character '\xe5' in file a.py on line 9, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details,布布扣,bubuko.com

SyntaxError: Non-ASCII character '\xe5' in file a.py on line 9, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details

上一篇:转载:Spring MVC配置详解


下一篇:初中级Javascript程序员必修学习目录