SyntaxError: Non-ASCII character '\xe6' in file test.py on line 1, but no encoding declared; see htt
最近敲python 遇到了下面这个错误:SyntaxError: Non-ASCII character '\xe6' in file test.py on line 1, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details解决办法: 在该.py的文件头部添加: 下列代码,即可! # -*-...
原创
2018-06-06 15:47:16 ·
6665 阅读 ·
0 评论