1
GPU 2016-04-27 16:21:29 +08:00 1
try:
# UCS-4 Emoji = re.compile(u'[\U00010000-\U0010ffff]') except re.error: # UCS-2 Emoji = re.compile(u'[\uD800-\uDBFF][\uDC00-\uDFFF]') name = Emoji.sub(u'\u25FD', name) By @sciooga |
2
Khlieb 2016-04-27 21:17:20 +08:00 via Android 1
Emoji 其实不止一个区间
https://en.wikipedia.org/wiki/Emoji |