Created
August 31, 2016 07:03
-
-
Save lxneng/f22ae4859d449210c90be477091c2bfb to your computer and use it in GitHub Desktop.
decode hex ascii
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
>>> a = unichr(int('5E97', 16)) | |
>>> a | |
u'\u5e97' | |
>>> print(a) | |
店 | |
>>> "%X" % ord(u'店') | |
'5E97' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment