how to get char ASCII value.

7stud bbxx789_05ss at yahoo.com
Tue Apr 10 03:23:17 EDT 2007


On Apr 10, 12:57 am, veblen.... at gmail.com wrote:
> for an example:
>   'a'  value 0x61
>   '1'  value 0x31.

How about:

import string

for char in string.lowercase:
    print hex(ord(char) )




More information about the Python-list mailing list