网站介绍:文章浏览阅读10w+次,点赞17次,收藏29次。基于python3.6.1版本,在一个.py文件中,加入这3行: import requests, re, sysreload(sys)sys.setdefaultencoding("utf-8") 出现这样的错误: sys.setdefaultencoding("utf-8")AttributeError: module 'sys' has no attribute...
- 链接地址:https://glory.blog.csdn.net/article/details/74922378
- 链接标题:Python3异常-AttributeError: module 'sys' has no attribute 'setdefaultencoding-CSDN博客
- 所属网站:glory.blog.csdn.net
- 被收藏次数:6223
- 网站标签:Python3异常-AttributeError: module 'sys' has no attribute 'setdefaultencoding