Hexadecimal: how to convert 'ED6F3C01' to "\xED\x6F\x3C\x01" in python coding?

zxo102 zxo102 at gmail.com
Sat May 24 18:36:50 EDT 2008


Hi,
   how  to change the hexadecimal 'ED6F3C01' (or 'ED 6F 3C 01') to
"\xED\x6F\x3C\x01" in python coding?
When I take 'ED6F3C01' as a string and insert '\x' into it, I just got
the error information : invalid \x escape.
   Thanks.

ouyang



More information about the Python-list mailing list