- 博客(1)
- 收藏
- 关注
原创 UnicodeDecodeError: 'ascii' codec can't decode byte 0xe9 in position 0: ordinal not in range(128) 解决
文件头部设置# -- coding: utf-8 --编码格式后依然报错,我的解决办法是: import sys if sys.getdefaultencoding() != 'utf-8': reload(sys) sys.setdefaultencoding('utf-8') 然后对中文再进行unicode('中问'')编码 已解决 ...
2018-11-30 11:51:00
450
1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人