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

Michael Bentley michael at jedimindworks.com
Tue May 1 17:16:40 EDT 2007


On May 1, 2007, at 4:06 PM, tedpottel at gmail.com wrote:

> 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?

Do you mean ord()?





More information about the Python-list mailing list