SyntaxError: Non-UTF-8 code starting with ‘\xc4‘ in file E:/7.python/day3/easyguis.py on line 2
关于python使用easygui出现
SyntaxError: Non-UTF-8 code starting with '\xc1' in file C:\...\xxx.py on line 8, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
解决方法:在最上面加上#coding: utf-8 即可运行。代码如下:
#coding: utf-8
import easygui
easygui
原创
2021-02-12 14:58:46 ·
268 阅读 ·
0 评论