#!/usr/bin/python import time import sys for x in range(10): print '\r%s'%x, sys.stdout.flush() time.sleep(1)