麻煩當運行,例如:出現經與time.sleep
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=" ")
什麼也沒有發生10秒,那麼整個[= = = = = = = = = =]。我怎樣才能防止這樣做,以便它可以作爲一種進度條?
oww,這是討厭的。什麼是循環?他們從來沒有做過任何不好的事情,應該得到如此公然的無知!有一顆心,男人! – LukeN 2010-05-11 22:42:15
[與函數中的time.sleep()sys.stdout.write()問題]可能重複(http://stackoverflow.com/questions/2808832/problems-with-sys-stdout-write-with-time - 功能中的睡眠) – tzot 2010-06-07 14:03:07