Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
"01020304deadbeef"任意の長い 16 進文字列 (例: ) を取得し、対応するバイト ( ) を取得する方法を知っている人はいます"\x01\x02\x03\x04\xde\xad\xbe\xef"か? Perl では、これを使用して取得できますがpack('H*', $string)、Python のソリューションを探しています。
"01020304deadbeef"
"\x01\x02\x03\x04\xde\xad\xbe\xef"
pack('H*', $string)