标签: python macos unix macos-high-sierra
有麻烦了。我尝试执行此代码:
print('')
我在系统中的主要语言是俄语,它打印正确,但如果我将系统语言改为英语,我有错误。
UnicodeEncodeError: 'ascii' codec can't encode character '\U0001f48e' in position 0: ordinal not in range(128)
我有没有办法在系统中使用英语作为主要内容并且无错误地打印相同的表情符号?我使用MacOS和Python 3.6.2。