![]() In this snippet, we have to do several things we did not do earlier: # Randomly increment one of our progress values While any(x < 100 for x in all_progress): ("\n" * count) # Make sure we have space to draw the bars We could even use the Up and Down cursor movements to let us draw multiple progress bars at once: import time, sys, random This works as you would expect: every iteration of the loop, the entire row is erased and a new version of the ASCII bar is drawn.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |