All gists matching topic visualization

timmy / 使用 tqdm 顯示進度條

0 likes
0 forks
4 files
Last active 9 months ago
tqdm 是一個輕量級的 Python 進度條庫,可用於迴圈、任務執行過程的可視化,適用於 批次處理、資料處理、下載任務、計算密集型應用 等場景。
1 from tqdm import tqdm
2 import time
3
4 for i in tqdm(range(10), desc="處理中", unit="step"):
5 time.sleep(0.5) # 模擬耗時操作
Newer Older