Python3异常-AttributeError: module 'sys' has no attribute 'setdefaultencoding-CSDN博客

网站介绍:文章浏览阅读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...