from time import sleep
from tqdm import tqdm
for i in tqdm(range(20)):
sleep(0.5)
或者
import time
from progressbar import *
progress = ProgressBar()
for i in progress(range(1000)):
time.sleep(0.01)
from time import sleep
from tqdm import tqdm
for i in tqdm(range(20)):
sleep(0.5)
或者
import time
from progressbar import *
progress = ProgressBar()
for i in progress(range(1000)):
time.sleep(0.01)