Is there a simple way (or simplest?) to convert between '\x1a\x2b\x3c\x4d'
and '1a2b3c4d'
in python?
(Here '\x4d'
means a byte whose ascii code is 4d
, namely the character 'M'
, but '4d'
stand for two characters. And the others are similar meanings.)