how to convert string
Fredrik Lundh
fredrik at pythonware.com
Thu Apr 6 06:21:48 EDT 2006
"Fulvio" <fulvio at pc.jaring.my> wrote:
> BTW, how to write a number repeatly in the same line and position, without let
> the printout to scroll down.
for i in range(100):
print "\r", i,
# do something
print
will work, as long as the message isn't too long, and you're printing to a
console device that does "the usual thing" when it sees a carriage return.
</F>
More information about the Python-list
mailing list