hex string to hex value

avnit avnit7 at gmail.com
Wed Nov 23 00:22:30 CET 2005


If you just want to convert a string to an integer, it would be:

>>> int(n)

in your case it would be:

>>> m=66
>>> n=int(hex(m))




More information about the Python-list mailing list