if I have a string with characters ( 0x61
0x62
0xD
), the repr
function of this string will return 'ab\r'
.
Is there way to do reverse operation: if I have string 'ab\r'
(with characters 0x61
0x62
0x5C
0x72
), I need obtain string 0x61
0x62
0xD
.
hex
andord
, but'\r'
isn't two characters. And'\r'
is0xd
, not0x13
. – Darciedarcy