At Thursday 25/1/2007 19:34, Rich Shepard wrote:
> assuming max size = 10
>
> #with spaces
>>> '% 10d' % 11
> ' 11'
> #with zeros
>>> '%010d' % 11
> '0000000011'
Thank you very much! I didn't see this in any of my Python books or on the
Web.
http://docs.python.org/lib/typesseq-strings.html
--
Gabriel Genellina
Softlab SRL
__________________________________________________
Preguntá. Respondé. Descubrí.
Todo lo que querías saber, y lo que ni imaginabas,
está en Yahoo! Respuestas (Beta).
¡Probalo ya!
http://www.yahoo.com.ar/respuestas
--
http://mail.python.org/mailman/listinfo/python-list