[Tutor] writing over text

max . dos.fool at gmail.com
Tue Jul 10 22:53:47 CEST 2007


thank you so much :)

On 7/10/07, Bob Gailer <bgailer at alum.rpi.edu> wrote:
>
> max . wrote:
> > hello i am writing a population script and was wondering  if i can
> > just keep writing to the same line instead of printing a new line
> > every second
> import time
> for i in range(5):
>      print chr(13), i,
>      time.sleep(1)
>
> # chr(13) = carriage return, and the trailing , suppresses the newline.
>
> --
> Bob Gailer
> 510-978-4454 Oakland, CA
> 919-636-4239 Chapel Hill, NC
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20070710/70dd6a7a/attachment.htm 


More information about the Tutor mailing list