How can I get the ascii code of a charter in python?

Diez B. Roggisch deets at nospam.web.de
Tue May 1 17:14:12 EDT 2007


tedpottel at gmail.com schrieb:
> Hi,
> a python newbe needs some help,
> 
> I read the python doc at
> http://docs.python.org/lib/module-curses.ascii.html
> 
> I tried
> Import curses.asciicurses.ascii
> Print ascii('a')
> 
> I get an error saying module curses.ascii8 does not exsist.
> 
> How can I get the ascii code of a charter in python?

ord('A') == 65

Diez



More information about the Python-list mailing list