1 import sys,time 2 3 for i in range(50): 4 sys.stdout.write('#') 5 sys.stdout.flush() 6 time.sleep(0.1)