Skip to content

Instantly share code, notes, and snippets.

@b1
Created March 4, 2013 17:55
Show Gist options
  • Save b1/5084093 to your computer and use it in GitHub Desktop.
Save b1/5084093 to your computer and use it in GitHub Desktop.
import sys
import time
for i in xrange(100):
sys.stdout.flush()
time.sleep(0.5)
sys.stdout.write('\r' + str(i))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment