Advertisement
pjmakey2

progress_console

Oct 4th, 2012
442
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.19 KB | None | 0 0
  1. #sencillo progress para consola
  2.  
  3. def progressbar(self, value, total):
  4.     maspro = (100*value) / total
  5.     sys.stdout.write('\r[%s]%d%%' % ('#'*(maspro/10), maspro))
  6.     sys.stdout.flush()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement