美文网首页
mac - python Jupyter notebook中文乱

mac - python Jupyter notebook中文乱

作者: 一只奔跑的乌龟 | 来源:发表于2017-11-21 22:43 被阅读1708次

第一次写简答你的爬虫,使用Jupyter notebook 编写代码,抓取的内容中文出现乱码,可以肯定是编码格式不匹配造成,倒腾了半小时...... 加上#coding=utf-8 不管用

解决方法:

如下图: 

图1

结果不是utf-8 所以乱码

图2

相关文章

网友评论

      本文标题:mac - python Jupyter notebook中文乱

      本文链接:https://www.haomeiwen.com/subject/rqygvxtx.html