# 安装pip install emoji -i http://pypi.douban.com/simple --trusted-host pypi.douban.com
import emoji
# 默认表情直接字符 thumbs_up 实现
result1 = emoji.emojize("Python is :thumbs_up:") # Python is
print(result1)
# 有些特殊的表情需要指定 use_aliases=True 参数才可以实现
# Sleeping is
result2 = emoji.emojize('Sleeping is :zzz:', use_aliases=True)
print(result2)
# 同时也支持反向操作
# 脑阔疼 :hear-no-evil_monkey:
print(emoji.demojize('脑阔疼 '))
result3 = emoji.emojize('脑壳疼 :hear-no-evil_monkey:', use_aliases=True)
print(result3)
#
result4 = emoji.emojize('囧 :unamused:', use_aliases=True)
print(result4)
# 查看全部表情链接:https://www.webfx.com/tools/emoji-cheat-sheet/