from tqdm import tqdm import time data = ["任務1", "任務2", "任務3", "任務4"] for task in tqdm(data, desc="執行任務"): time.sleep(1) # 模擬處理時間