|
|
@@ -177,7 +177,7 @@ def download_img(load_data, target_file_path):
|
|
|
|
|
|
# 算一下进度
|
|
|
rate = index / len(load_data) * 100
|
|
|
- print(f'已下载:{img_name}, 当前第 {index} 个, 共 {len(load_data)} 个, 已下载 {rate:.2f}%')
|
|
|
+ print(f'已下载:{img_name}, 当前第 {index+1} 个, 共 {len(load_data)} 个, 已下载 {rate:.2f}%')
|
|
|
time.sleep(random.uniform(1, 2))
|
|
|
break
|
|
|
except Exception as e:
|