Python3 SyntaxError: Non-UTF-8 code starting with ‘\xe3‘ in file xxx.py
问题
SyntaxError: Non-UTF-8 code starting with '\xe3' in file test.py on line 8, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
Process finished with exit code 1
大意:以 '\xe3' 开头的非 UTF-8 代码,但未声明编码
解决方式
第一行增加
# -*- cod...
原创
2021-06-24 10:28:39 ·
3567 阅读 ·
0 评论