how make print print 1 line each time like
for in range(1,100) print
but want print 1 line each time be: 1 , 1 erased print 2 , on.
like this?
import sys import time >>> in range(1, 100): ... sys.stdout.write(str(i)) ... sys.stdout.flush() ... time.sleep(0.2) ... sys.stdout.write("\b"*4) <numbers count here> >>>
Comments
Post a Comment