Re: ASCII
- From: Will McGugan <news@xxxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 30 Sep 2005 19:27:00 +0100
Tuvas wrote:
Is there a function that will take a char. and return the ascii value? Thanks!
ord
Will McGugan
--
http://www.willmcgugan.com
"".join({'*':'@','^':'.'}.get(c,0) or chr(97+(ord(c)-84)%26) for c in "jvyy*jvyyzpthtna^pbz")
.
- Follow-Ups:
- Re: ASCII
- From: Tuvas
- Re: ASCII
- References:
- ASCII
- From: Tuvas
- ASCII
- Prev by Date: Re: [Info] PEP 308 accepted - new conditional expressions
- Next by Date: Re: 2.4.2 compilation
- Previous by thread: ASCII
- Next by thread: Re: ASCII
- Index(es):