Created
July 26, 2016 16:18
-
-
Save vicenteg/28c935fc7b1ced861cf2fe0c565f5ca9 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 itertools | |
import sys | |
c = itertools.cycle(['|','/','-','\\']) | |
for i in c: | |
sys.stdout.write(i) | |
sys.stdout.flush() | |
time.sleep(.05) | |
sys.stdout.write('\r') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment