初学Python的朋友可能会遇到:Python---File "<stdin>", line 1 SyntaxError: invalid syntax
见链接:http://blog.csdn.net/jamiecheung/article/details/54943964
如果出现错误提示: File "test.py", line 2
SyntaxError: Non-ASCII character '\xe4' in file test.py on line 2, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details
在你的.py文件里面增加这行:# -- coding: UTF-8 --
网友评论