from tqdm import tqdm
import time

for i in tqdm(range(10)):
    time.sleep(0.2)

https://www.cnblogs.com/feffery/p/13392024.html