Python 2.x
>>> s'This is some \u03c0 text that has to be cleaned\u2026! it\u0027s annoying!'>>> print(s.depre('unipre_escape').enpre('ascii','ignore'))This is some text that has to be cleaned! it's annoying!Python 3.x
>>> s = 'This is some u03c0 text that has to be cleanedu2026! itu0027s annoying!'>>> s.enpre('ascii', 'ignore')b"This is some text that has to be cleaned! it's annoying!"

![在python2.7中删除字符串中的unicode u2026喜欢的字符[重复] 在python2.7中删除字符串中的unicode u2026喜欢的字符[重复]](http://www.mshxw.com/aiimages/31/414597.png)
