Python Progress Bar
Date: December 4, 2014
Categories: Python
simple standalone bar u can implement it on your code
it will show a progress bar of items range
1 2 3 4 5 6 7 8 |
from time import sleep import sys for i in range(21): sys.stdout.write('\r') # the exact output you're looking for: sys.stdout.write("[%-20s] %d%%" % ('='*i, 5*i)) sys.stdout.flush() sleep(0.25) |
Leave a Reply