Created
January 7, 2017 03:12
-
-
Save sfantree/366d27447d4c21a4182563cbcae4dee3 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
import re | |
a='\\xe3\\x82\\xae\\xe3\\x83\\xaa\\xe3\\x82\\xae\\xe3\\x83\\xaaeye' | |
print repr(a)[1:-1] | |
b = eval("'%s'" % a) | |
print b |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment