Last active
March 21, 2019 05:13
-
-
Save cgsvv/92215a20b884549d37f7f71032a3491b to your computer and use it in GitHub Desktop.
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
#!/usr/bin/python | |
# coding: utf-8 | |
import sys, time, random | |
emojis = ['π', 'π', 'π', 'π', 'π', 'π', 'π', 'π'] | |
def write(text): | |
sys.stdout.write('\r' + text) | |
sys.stdout.flush() | |
for i in range(24): | |
write(emojis[i%len(emojis)]) | |
time.sleep(1.0/24) | |
write(['π', 'π'][random.randint(0,1)]) | |
sys.stdout.write('\n') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment