Created
January 9, 2017 09:36
-
-
Save gzxultra/50302825e0350c15129b00502e66701b 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
def zhprint(obj): | |
import re | |
print re.sub(r"\\u([a-f0-9]{4})", lambda mg: unichr(int(mg.group(1), 16)), obj.__repr__()) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment