Difference between revisions of "Progress bar"
Jump to navigation
Jump to search
Rafahsolis (talk | contribs) (Created page with "== Python ==") |
Rafahsolis (talk | contribs) m Tag: visualeditor |
||
| Line 1: | Line 1: | ||
| − | == Python == | + | ==Python== |
| + | <syntaxhighlight lang="bash"> | ||
| + | pip install tqdm | ||
| + | </syntaxhighlight><syntaxhighlight lang="python3"> | ||
| + | from tqdm import tqdm | ||
| + | from time import sleep | ||
| + | |||
| + | |||
| + | for i in tqdm(list(range(100))): | ||
| + | time.sleep(0.3) | ||
| + | </syntaxhighlight> | ||
| + | [[Category:Python]] | ||
Revision as of 10:02, 16 May 2019
Python
pip install tqdm
from tqdm import tqdm
from time import sleep
for i in tqdm(list(range(100))):
time.sleep(0.3)