python中出现Non-ASCII character '\xe7' in file ex6.py on line 1, but no encoding declare的错误
python中出现Non-ASCII character ‘\xe7’ in file ex6.py on line 1, but no encoding declare的错误可按照错误建议网址查看http://www.python.org/peps/pep-0263.html发现是因为Python在默认状态下不支持源文件中的编码所致。解决方案有如下三种:一、在文件头部添加如下注释码:co...
原创
2019-03-15 17:22:22 ·
320 阅读 ·
0 评论