I've got a problem. I've this string:
a=O\x8c\x90\x05\xa1\xe2!\xbe
If i use:
c=str.encode(a)
This is the result:
b'O\\x8c\\x90\\x05\\xa1\\xe2!\\xbe'
I need those double backslash to be single backslash and i really need that type of data to be BYTES. I need to return this:
c=b'0\x8c\x90\x05\xa1\xe2!\xbe'
And type(c)==bytes Any idea?
print(repr(a))
give? – Goldsworthy