Skip to content

Instantly share code, notes, and snippets.

@vicenteg
Created July 26, 2016 16:18
Show Gist options
  • Save vicenteg/28c935fc7b1ced861cf2fe0c565f5ca9 to your computer and use it in GitHub Desktop.
Save vicenteg/28c935fc7b1ced861cf2fe0c565f5ca9 to your computer and use it in GitHub Desktop.
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