会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
vocus
勇敢前行,一切都会柳暗花明的
博客园
首页
新随笔
联系
管理
2019年8月27日
python3.x设置默认编码(sys.stdout.encoding和sys.defaultencoding)
摘要: 查了一会资料得出的结论是如果你用的是python3.x,那么就最好别去设置sys.defaultencoding或者sys.stdout.encoding记住在需要编码的时候用encode,解码的时候decode就可以了。。。 这个问题貌似很复杂首先区分一下sys.stdout.encoding和s
阅读全文
posted @ 2019-08-27 07:45 vocus
阅读(10616)
评论(0)
推荐(1)