我想在Python上打印一个表情符号
代码:
print("\U0001f600")
我试图使用unicode打印,但编译后显示错误
错误:
Traceback (most recent call last): File "C:/Users/RAHUL/Desktop/new.py", line 1, in print("\U0001f600") UnicodeEncodeError: 'UCS-2' codec can't encode character '\U0001f600' in position 0: Non-BMP character not supported in Tk
我在网上搜索过,但没有找到答案
目前没有回答
相关问题 更多 >
编程相关推荐