‘gbk‘ codec can‘t encode character ‘\U0001f64f‘ in position 10085:错误解决_u0001f300- u0001f64f-CSDN博客

网站介绍:文章浏览阅读3.5k次。import io import syssys.stdout = io.TextIOWrapper(sys.stdout.buffer,encoding='gb18030') #改变标准输出的默认编码 直接将以上代码放在你的代码中,简单粗暴!_u0001f300- u0001f64f