简易的进度显示
# 进度 import sys sys.stdout.write('\r' + str((i+1)/X*100) + '%') # X为总数 i默认从0开始 sys.stdout.flush()