preamble
As a data analyst, you should believe in the saying - "a picture is worth a thousand words". But what we are talking about here is not data visualization, but a universal product form - emoticons !!!!
Emoji is not just a symbol, but a culture - one of the driving forces for socialization and even social development, just like laziness. We insist that an excellent emoticon, should be a piece of art, is that suddenly like a spring breeze to the inspiration of the outbreak, is that noisy and wrong bullet of the emotional stirring, is that hanging straight from the cloud sail Jijie Canghai's ambition, is that a glimpse of the world's mountains of the glory of the triumph of the victory - is not tolerated code farmers with its customary form of fixing, process Fixed, no beauty, no artistic variation and surprise of linear thinking deconstruction. However, in the process of producing emoticons, if you just mechanically import the picture into PS - change the text - export, it is also too low, so it is better to give these very low mechanized repetitive actions to the program to do it.
Previously always thought that the automatic processing of images, to rely on JavaScript script control PS or AI; later found that Python can actually do some simple image processing, although it may not be as powerful as MATLAB. So for image processing, the complex part is still in the PS or AI manually completed, simple processing can be done with Python program.
Recently, I've been adding some interesting operations to my code that can make it several LEVELs more friendly, and I just learned that Python supports emoji emoji output, which is fairly simple to implement.
Install the emoji library
pip install emoji
simple realization
import emoji # The default emoji can be realized directly through the characters of the emoji print(('Python is :thumbs_up:')) # Python is 👍 # There are some special expressions that require the use_aliases=True parameter. print(('Sleeping is :zzz:', use_aliases=True)) # Sleeping is 💤 # Also supports reverse operations print(('Brain pain 🙉')) # brain ache :hear-no-evil_monkey:
supportive emoticon
Almost all emoji are supported, see all emoji links at /tools/emoji-cheat-sheet/.
summarize
This article on Python to achieve emoji emoticons to this article, more related Python to achieve emoji emoticons content, please search for my previous posts or continue to browse the following related articles I hope you will support me in the future!