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

解决方案是:

  在程序最上面加上:# coding=gbk

  这样程序就可以正常运行了。

原文地址:https://www.cnblogs.com/xiaoit/p/4040696.html