zach14c

tqdm

Dec 3rd, 2018
281
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.20 KB | None | 0 0
  1. from tqdm import tqdm
  2. pbar = tqdm(["a","b","c","d"])
  3. for char in pbar:
  4.     pbar.set_description("Processing %s"%char)
  5. with tqdm(total=100) as pbar:
  6.     for i in range(10):
  7.         pbar.update(10)
Advertisement
Add Comment
Please, Sign In to add comment