Skip to content

Instantly share code, notes, and snippets.

@supermomonga
Created December 20, 2012 04:08
Show Gist options
  • Save supermomonga/4342922 to your computer and use it in GitHub Desktop.
Save supermomonga/4342922 to your computer and use it in GitHub Desktop.
simple number progress
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import time
import sys
for i in xrange(101):
time.sleep(0.05)
sys.stdout.write("\r%s" % i)
sys.stdout.flush()
sys.stdout.write("\n")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment