[python] SyntaxError: Non-ASCII character ‘\xe6‘ in file xxx.py on line 4, but no encoding declared;
error执行python报错SyntaxError: Non-ASCII character ‘\xe6’ in file xxx.py on line 4, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for detailsreason代码中存在中文注释resolution在文件第一行添加# encoding=utf-8...