import os
def hello_world(input_path):
'''
params input_path : your files root path
to do : get loop index and progress
'''
case_list = os.listdir(input_path)
all_num = len(case_list)
for case in sorted(case_list):
index += 1
print("{}/{}: {}".format(index, all_num, case))
pass
hello_world('your path')
Python 显示当前循环次数 进度查看tricks
最新推荐文章于 2024-02-19 11:12:45 发布