Python

beb410c7 anonymous 2011-02-25 01:08
簡単に文字列を16進数にできるんだって。

>>> "新月".encode("hex")
'e696b0e69c88'
>>> "e696b0e69c88".decode("hex")
'\xe6\x96\xb0\xe6\x9c\x88'
>>> print "e696b0e69c88".decode("hex")
新月

Top of this page. | <<last

limit: 15360KB

(Python/85/0.0MB)

Powered by shinGETsu.