解决python UnicodeEncodeError: ‘gbk‘ codec can‘t encode character ‘\xb5‘ in position 255: illegal mult

UnicodeEncodeError: 'gbk' codec can't encode character '\ufffd' in position 373: illegal multibyte sequence

问题翻译:

UnicodeEncodeError:“gbk”编解码器无法对位置373处的字符“\ufffd”进行编码:非法的多字节序列

报错代码告诉我们“gbk”的编码器已经无法对某处的,使用我们需要更改一下编辑器里面文件编码的项目编码改为“UTF-8”即可

解决python UnicodeEncodeError: ‘gbk‘ codec can‘t encode character ‘\xb5‘ in position 255: illegal mult_第1张图片

解决python UnicodeEncodeError: ‘gbk‘ codec can‘t encode character ‘\xb5‘ in position 255: illegal mult_第2张图片

解决python UnicodeEncodeError: ‘gbk‘ codec can‘t encode character ‘\xb5‘ in position 255: illegal mult_第3张图片

完成上面环节既可以开始运行你的代码了

 解决python UnicodeEncodeError: ‘gbk‘ codec can‘t encode character ‘\xb5‘ in position 255: illegal mult_第4张图片

 感谢各位大佬的浏览

你可能感兴趣的:(pycharm,python,环境配置,pycharm,python,网络爬虫)