Created
July 9, 2009 15:06
-
-
Save qingfeng/143728 to your computer and use it in GitHub Desktop.
处理&#开头的中文
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| s = u'如何面对产痛 ' | |
| print "".join( map(lambda x:unichr(int(x.replace("&#",""))),filter(lambda x:x!='',s.strip().split(";"))) ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment