So I have this normal string and I want to get its hex value in Python.
Example:
“:” I want the program to output “0x3a”
However I searched didn’t find anything here. Do you know how to do this?
So I have this normal string and I want to get its hex value
Share
Python2 has this easy way
Python3 is not so bad