Raw Daten encodieren/decodieren
Raw Daten String in Hex encodieren:
>>>
x
=
'
\x
01
\x
a5'
>>>
x
=
x.
encode
(
"hex"
)
>>>
x 01a5
Hex in String decodieren:
>>>
x
=
x.
decode
(
"hex"
)
>>>
x
'
\x
01
\x
a5'