![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
错误提示
GDUTSD
talk is cheap,show we the code
展开
-
SyntaxError: Non-UTF-8 code starting with '\xc5' in file
错误提示:SyntaxError: Non-UTF-8 code starting with ‘\xc5’ in file解决方案:在开头加上# -- coding: gbk --参考:http://python.org/dev/peps/pep-0263/原创 2019-05-11 06:12:42 · 4066 阅读 · 0 评论 -
UnicodeEncodeError: 'gbk' codec can't encode character '\u2022' in position 12440: illegal multibyte
爬取知乎源代码import requestsheaders={'User-Agent':'Mozilla/5.0 (Windows NT 10.0; WOW64; rv:58.0) Gecko/20100101 Firefox/58.0'}url = 'https://www.zhihu.com/explore'#知乎网页html = requests.get(url,headers...转载 2019-05-11 05:30:27 · 3225 阅读 · 0 评论 -
visual studio 2010 运行后 不显示按任意键退出
解决方法:1、在程序里面加上system(“pause”);或者gechar(); 则可以按任意键退出。2、在程序里面加入getchar(); 则只能按enter键退出。原创 2019-10-24 21:46:07 · 1329 阅读 · 0 评论