您的位置: 首页 > IT文章 > SyntaxError: Non-UTF-8 code starting with 'xc5' in file t.py on line 3,but no encoding declared;see http://python.org/dev/peps/pep-0263/ for details SyntaxError: Non-UTF-8 code starting with 'xc5' in file t.py on line 3,but no encoding declared;see http://python.org/dev/peps/pep-0263/ for details 分类: IT文章 • 2024-04-29 17:28:54 解决方案是: 在程序最上面加上:# coding=gbk 这样程序就可以正常运行了。