UnicodeEncodeError: 'UCS-2' codec can't encode characters in position 8-8: Non-BMP character not sup

场景

报错信息如下:

UnicodeEncodeError: 'UCS-2' codec can't encode characters in position 8-8: Non-BMP character not supported in Tk

解决

Python自带的编辑器IDLE无法输出特殊字符。

改为Pycharm运行程序即可。

猜你喜欢

转载自blog.csdn.net/BADAO_LIUMANG_QIZHI/article/details/89670458
今日推荐