Created
November 11, 2011 21:38
-
-
Save tomwolber/1359380 to your computer and use it in GitHub Desktop.
python sleeeeeeep
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
import time | |
import sys | |
// This sleeps for 10 secs, then prints a bunch of stars | |
for i in range(10): | |
time.sleep(1) | |
print '*', | |
// Same here | |
In [16]: for i in range(10): | |
time.sleep(1) | |
sys.stdout.write('*') | |
// This works as expected | |
for i in range(10): | |
time.sleep(1) | |
print '*' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
SOLUTION