以下是: 蟒蛇章附表: from time import time, sleep
from sched import scheduler
def daemon(local_handler):
print 'hi'
local_handler.enter(3, 1, daemon, (local_handler,))
if __name__ == '__main__':
如果我在Sleep()命令處於活動狀態時輸入內容,我找不到解決此程序退出的解決方案。 cout<<"Start"<<endl;
Sleep(5000); //<--- if I input anything while this is active the program quits after the time ends
cout<<"End"<<endl; //this is outp