[Python]”no encoding declared 错误”解决方法

在使用Python编译的时候出现如下错误:nSyntaxError: Non-ASCII character ‘\xe5’ in file Test1.py on line 8, but no encoding declared; see http://www.python.org/peps/pep-0263.htmln for detailsnn解决方法:python的默认编码文件是用的