Created
May 7, 2018 10:18
-
-
Save jmg-duarte/e0df81f2cfb7448106db4f585efacd8a to your computer and use it in GitHub Desktop.
A single line loader
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
def console_loader(): | |
import time | |
import sys | |
for i in range(100): | |
sys.stdout.write('\r{}'.format(i)) | |
sys.stdout.flush() | |
time.sleep(0.5) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment