打印结果:
UnicodeEncodeError: 'gbk' codec can't encode character '\xbb' in position 8530: illegal multibyte sequence
并且输出的html页面出现乱码,不能正常显示:
将上面的代码变换下顺序,如下
输出结果为正常
标签:sequence,character,multibyte,codec,报错,UnicodeEncodeError,illegal,encode
来源: https://www.cnblogs.com/xsj210/p/14445276.html