Difference between revisions of "Progress bar"

From RHS Wiki
Jump to navigation Jump to search
(Created page with "== Python ==")
 
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)