Correctly extract Emojis from a Unicode string
问题 I am working in Python 2 and I have a string containing emojis as well as other unicode characters. I need to convert it to a list where each entry in the list is a single character/emoji. x = u'😘😘xyz😊😊' char_list = [c for c in x] The desired output is: ['😘', '😘', 'x', 'y', 'z', '😊', '😊'] The actual output is: [u'\ud83d', u'\ude18', u'\ud83d', u'\ude18', u'x', u'y', u'z', u'\ud83d', u'\ude0a', u'\ud83d', u'\ude0a'] How can I achieve the desired output? 回答1: First of all, in Python2, you need