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=gbk
转载的,原文地址见下方。
作者:YB
来源:CSDN
原文:https://blog.csdn.net/wyb_hardworking/article/details/19562971
版权声明:本文为博主原创文章,转载请附上博文链接!