
저는 cygwin을 사용하여 while 루프를 사용하고 time.sleep()
출력을 표시하는 Python 스크립트를 실행하고 있습니다. time.sleep()
루프 내부에서 제외 하면 cygwin 터미널은 예상대로 출력을 표시합니다. 이 기능을 사용하면 time.sleep()
출력이 표시되지 않습니다.
import time
while True:
print "hello world"
이 예는 없이 사용할 수 있습니다.time.sleep()
import time
while True:
print "hello world"
time.sleep(1)
이 코드는 cygwin 터미널에 어떤 출력도 표시하지 않습니다.