How to properly print a list of unicode characters in python?
问题 I am trying to search for emoticons in python strings. So I have, for example, em_test = ['\U0001f680'] print(em_test) ['🚀'] test = 'This is a test string 💰💰🚀' if any(x in test for x in em_test): print ("yes, the emoticon is there") else: print ("no, the emoticon is not there") yes, the emoticon is there and if a search em_test in 'This is a test string 💰💰🚀' I can actually find it. So I have made a csv file with all the emoticons I want defined by their unicode. The CSV looks like this: