让优秀变成一种习惯

解决编码问题:UnicodeEncodeError: 'ascii' codec can't encode characters in

上一篇 / 下一篇  2017-10-18 15:50:16 / 个人分类:经验

position 101-104: ordinal not in range(:

import sys
reload(sys)
sys.setdefaultencoding('utf8')

将编码写成默认为utf8


TAG:

 

评分:0

我来说两句

我的栏目

日历

« 2024-05-01  
   1234
567891011
12131415161718
19202122232425
262728293031 

数据统计

  • 访问量: 42881
  • 日志数: 40
  • 建立时间: 2015-12-17
  • 更新时间: 2017-12-28

RSS订阅

Open Toolbar