python3報錯AttributeError: module 'sys' has no attribute 'setdefaultencoding'

Python 3 系統默認使用的就是utf-8編碼,

就不需要sys.setdefaultencoding(“utf-8”)這段代碼,

而且Python 3 的 sys 庫裏面已經沒有 setdefaultencoding() 函數了

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章