Created
October 26, 2019 19:09
-
-
Save UlvacMoscow/d6358f6f519b54b0e3a92210db597804 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import time | |
def ping(): | |
time.sleep(1) | |
print('ping') | |
def pong(): | |
print('pong') | |
def run(): | |
while True: | |
ping() | |
# time.sleep(1) | |
pong() | |
run() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Почему при запуске скрипта в консоль ничего не выводиться, хотя если завершить программу ctrl+c то вывалиться соответствующая ошибка и перед ней все принты. Но если все слипы убрать то все выводиться в консоль почему так?