Created
June 11, 2015 23:56
-
-
Save szastupov/318876342258d2c5a939 to your computer and use it in GitHub Desktop.
Simple python progress bar
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
def progress(perc): | |
bar = "\r[{0:<50}] {1}%".format("=" * int(perc/2), perc) | |
sys.stdout.write(bar) | |
sys.stdout.flush() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment