Created
December 11, 2014 12:34
-
-
Save vayn/f2c99e43ae54de4ce244 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from sys import stdout | |
from time import sleep | |
for i in range(1,20): | |
stdout.write("\r%d" % i) | |
stdout.flush() | |
sleep(1) | |
stdout.write("\n") # move the cursor to the next line |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment