Created
June 12, 2018 03:41
-
-
Save leimao/d4db74b840a40c84096c9fd20049c604 to your computer and use it in GitHub Desktop.
Tqdm Process Example
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
""" | |
Tqdm Process Hook | |
Lei Mao | |
University of Chicago | |
""" | |
from tqdm import tqdm | |
def addup(): | |
accum = 0 | |
for i in range(1000): | |
accum += 1 | |
return accum | |
def counter(): | |
for i in tqdm(range(100000)): | |
addup() | |
return | |
if __name__ == '__main__': | |
counter() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment