1. 程式人生 > >SyntaxError: Non-ASCII character '\xe6' in file

SyntaxError: Non-ASCII character '\xe6' in file

 

SyntaxError: Non-ASCII character '\xe6' in file c:/xxxxxxx/tmp.py on line 12, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details

 

py文件最上面加此解決