2015
09
03

PythonでHexをデコードするには

頭に"\x"をつけてプリントすればOK

>>> print("\x68\x65\x6c\x6c\x6f")
hello


Python 2.0 系なら以下でも可

>>> '68656c6c6f'.decode('hex')
'hello'


以上
Comment



Only the blog author may view the comment.

[85]

Hey there I am so grateful I found your blog, I really found
you by mistake, while I was researching on Bing for something else, Regardless I am here now
and would just like to say many thanks for a
tremendous post and a all round interesting blog
(I also love the theme/design), I don't have time to read through it all at the moment but I have book-marked it and also
added in your RSS feeds, so when I have time I will be back to read much more, Please do
keep up the excellent job.

[112]

It's appropriate time to make some plans for the longer
term and it's time to be happy. I've read this publish and
if I may just I desire to suggest you few attention-grabbing
things or advice. Perhaps you can write subsequent articles referring to this article.

I want to learn even more issues approximately it!

[140]

Woah! I'm really loving the template/theme of this site.
It's simple, yet effective. A lot of times it's
hard to get that "perfect balance" between usability and visual appearance.
I must say you have done a superb job with this.
In addition, the blog loads very fast for me on Opera.
Outstanding Blog!

Trackback
Trackback URL

«  | HOME |  »

奇妙な風景 Unique Scene
<< >>

プロフィール


最新記事


最新コメント


最新トラックバック


月別アーカイブ


カテゴリ


スポンサード リンク


FC2カウンター


検索フォーム


RSSリンクの表示


リンク


ブロとも申請フォーム


QRコード