Hello is there a way to convert string to bytes like this "b'\x..."?
I have tried:
string = "mystring"
print(string.encode('utf-8'))
But I get
b'mystring'
I want it to print like
b'\x...
Hello is there a way to convert string to bytes like this "b'\x..."?
I have tried:
string = "mystring"
print(string.encode('utf-8'))
But I get
b'mystring'
I want it to print like
b'\x...