a=0100; print a ; 64 how to reverse this?
brotherjenos at gmail.com
Wed Jul 18 06:04:22 CEST 2007
This is probably way more simple than you mean, but str() can turn an int
into a string and int() to go the opposite direction. Is that what you're
talking about or do you need something else?
On 7/17/07, Dan Bishop <danb_83 at yahoo.com> wrote:
> On Jul 17, 7:40 am, mosi <skawan... at gmail.com> wrote:
> > Thank you,
> > this is great,
> > I thought that this should be standard in python 2.4 or 2.5 or in some
> > standard library (math ???)
> > Didn`t find anything.
> The bin() function is slated to be added to the next version of
> Why there isn't a general itoa() function, I don't know.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Python-list