Having trouble with time.sleep
Posted
by Waterfox
on Stack Overflow
See other posts from Stack Overflow
or by Waterfox
Published on 2010-05-11T22:40:22Z
Indexed on
2010/05/11
22:44 UTC
Read the original article
Hit count: 346
When I run, for example:
print("[",end=" ")
time.sleep(1)
print("=",end=" ")
time.sleep(1)
print("=",end=" ")
time.sleep(1)
print("=",end=" ")
time.sleep(1)
print("=",end=" ")
time.sleep(1)
print("=",end=" ")
time.sleep(1)
print("=",end=" ")
time.sleep(1)
print("=",end=" ")
time.sleep(1)
print("=",end=" ")
time.sleep(1)
print("=",end=" ")
time.sleep(1)
print("=",end=" ")
time.sleep(1)
print("]",end=" ")
Nothing happens for 10 seconds, then the whole [ = = = = = = = = = = ] appears. How can I prevent that so that it can act as a sort of progress bar?
© Stack Overflow or respective owner