Python 3 系统默认使用的就是utf-8编码,
就不需要sys.setdefaultencoding("utf-8")
这段代码,
而且Python 3的sys库里面已经没有setdefaultencoding()
函数。
解决AttributeError: module 'sys' has no attribute 'setdefaultencoding'
路人甲
技术分享
相关文章
1014
文章
2
分类
12
评论
1
连接
18年
站龄
随机推荐
2019-02-05
2013-12-21
2015-03-10
2024-01-09