How to print 😁😛😋🤣emojis using python🐍 | by Keerti Prajapati
文章推薦指數: 80 %
Unicode; CLDR names; emoji module. Unicodes: To use Unicodes , we need to replace “+” with “000” from the list ... AboutUsDeepLearningMachineLearningDataVisualisationDataEngineeringWriteforUsHowtoprint😁😛😋🤣emojisusingpython🐍KeertiPrajapatiFollowJun17,2020·2minreadEveryonetodaydouseemojisinoneortheotherwaysonsocialmedia.Beingaprogrammer,haveyoueverthoughttowritecodethatwouldgiveemojisinoutput?Itwouldbereallyfunright!!!Youmightthinktherewillbebigalgorithmtoprintemojis😰🙄.Butletmetellyou ,itisnottrue,infactitisveryeasytowritecodeifyouunderstandtheemojiswell.Byunderstandingtheemojiswell,Imeantounderstandhowemojisrepresentedorstoreinmemory?Everythinginmemoryisstoreinbinaryformatsotheemojisare.Itisverydifficultforustoidentifyemojisinbinary format .Forthisproblemwehavevariousencodingmethods.MethodusedforencodingtheemojisisUnicode .EveryemojishavepredefinedencodedUnicodecharacter.So ,wejustneedtouseUnicodecharactersofemojis.ButitmaybedifficulttouseUnicodecharactersofemojis.Fortunately ,pythonhavemultiplewayusingwhichwecanprintemojis :UnicodeCLDRnamesemojimoduleUnicodes:TouseUnicodes ,weneedtoreplace“+”with“000”fromthelistofunicodes .Forexample :“U+1F600”willbecome“U0001F600”andprefixtheunicodewith“\”andprintit.CLDRnames:EmojishaveCLDRshortnameswhichcanalsobeused.Example:Inabovecode ,firstlineusedCLDRnamesandsecondlineusedUnicode.emojimodule:EmojiscanalsobeimplementedbyusingtheemojimoduleprovidedinPython.Toinstallitrunthefollowingintheterminal.pipinstallemojiemojize() functionrequirestheCLDRshortnametobepassedinitastheparameter.Itthenreturnsthecorrespondingemoji.ReplacethespaceswithunderscoreintheCLDRshortname.Example:UsefollowinglinktogetUnicodewithCLDRnamesofallemojis:https://unicode.org/emoji/charts/emoji-list.html🐍🐍😊😊🐍🐍😊😊🐍🐍AnalyticsVidhyaAnalyticsVidhyaisacommunityofAnalyticsandData…163Python3EmojiPythonProgrammingUnicodeModules163 claps163AnalyticsVidhyaAnalyticsVidhyaisacommunityofAnalyticsandDataScienceprofessionals.Wearebuildingthenext-gendatascienceecosystemhttps://www.analyticsvidhya.comWrittenbyKeertiPrajapatiFollowYetanotherPythonCoderAnalyticsVidhyaAnalyticsVidhyaisacommunityofAnalyticsandDataScienceprofessionals.Wearebuildingthenext-gendatascienceecosystemhttps://www.analyticsvidhya.comMoreFromMediumIoradAnalyticsprovideinsightsaboutyourlearners.LaurenTaylorinioradEmergenciesinDistributedSystemsGregoryPabianinLevelUpCodingITandDataCenterCostReductionCTMTechnologyGroupObservabilityascode,secretsasaservice,andchaoskatas:ThoughtWorksoutlineskeyengineering…RichardGallCentralizationanddecentralizationtoenhanceinfrastructureresilienceAlyshaHelmrichinInfrastructureintheAnthropoceneBeginnersguidetofacadesinlaravelDecodeWebFizzBuzzWendyRavenMcNairinGeekCultureCreateaSpecializedCustomerSelf-HelpWidgetExperienceLaurenTayloriniorad
延伸文章資訊
- 1Full Emoji List, v14.0 - Unicode
- 2How to properly print a list of unicode characters in python?
I can actually find it. So I have made a csv file with all the emoticons I want defined by their ...
- 3Python - Reading Emoji Unicode Characters - Pretag
Fortunately ,python have multiple way using which we can print emojis :,But it may be difficult t...
- 4HTML Emojis - W3Schools
They are letters (characters) from the UTF-8 (Unicode) character set. UTF-8 covers almost all of ...
- 5Unicode 10.0 Emoji List - Emojipedia
Unicode 10.0 is the version of the Unicode Standard released on June 20, 2017. 8,518 new characte...