原文:python3 UnicodeEncodeError: 'gbk' codec can't encode character '\xa0' in position 4400: illegal multibyte sequence

加上代码 import io import sys sys.stdout io.TextIOWrapper sys.stdout.buffer,encoding gb 原因:print 函数自身有限制,不能完全打印所有的unicode字符,python的默认编码不是 utf ,改一下python的默认编码成 gb ...

2020-01-01 23:30 0 511 推荐指数:

查看详情

 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM