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

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

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


Python 2.0 系なら以下でも可

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


以上

この記事へのComments:

ameblo.jp : 2017/07/22 (土) 15:28:48

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.

What do you do when your Achilles tendon hurts? : 2017/07/24 (月) 04:37:39

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!

glossydesperado06.wordpress.com : 2017/07/31 (月) 06:55:19

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!

管理人のみ通知 :

Trackbacks:


プロフィール

トニヒコ

Author:トニヒコ
趣味は旅行と読書とマンガ。
将来の夢はコスモポリタン!

リンク・フリーです。

My hobby is traveling and reading(include manga).
My dream is to become cosmopolitan!

最新記事
最新コメント
最新トラックバック
月別アーカイブ
カテゴリ
スポンサード リンク
マクロミルへ登録
FC2カウンター
検索フォーム
RSSリンクの表示
リンク
ブロとも申請フォーム

この人とブロともになる

QRコード
QR