updated progress bar
This commit is contained in:
@@ -19,7 +19,7 @@ def printProgressBar(iteration, total, prefix = '', suffix = '', decimals = 1, l
|
||||
"""
|
||||
percent = ("{0:." + str(decimals) + "f}").format(100 * (iteration / float(total)))
|
||||
filledLength = int(length * iteration // total)
|
||||
bar = fill * filledLength + '-' * (length - filledLength)
|
||||
bar = fill * filledLength + '|' * (length - filledLength)
|
||||
print(f'\r{prefix} |{bar}| {percent}% {suffix}', end = printEnd)
|
||||
# Print New Line on Complete
|
||||
if iteration == total:
|
||||
|
||||
Reference in New Issue
Block a user