I have a string
s = "b'\\xff\\xd8\\xff\\xe0\\x00'" You need to get it in bytes, ie:
b = b'\xff\xd8\xff\xe0\x00' type(b) = bytes How to do it?
I have a string
s = "b'\\xff\\xd8\\xff\\xe0\\x00'" You need to get it in bytes, ie:
b = b'\xff\xd8\xff\xe0\x00' type(b) = bytes How to do it?
Source: https://ru.stackoverflow.com/questions/676283/
All Articles
"b'\xff\xd8\xff\xe0\x00'"or"b'\\xff\\xd8\\xff\\xe0\\x00'"? - andreymal