这似乎可行:
import timefrom threading import Threadanswer = Nonedef check(): time.sleep(2) if answer != None: return print "Too Slow"Thread(target = check).start()answer = raw_input("Input something: ")
欢迎分享,转载请注明来源:内存溢出
这似乎可行:
import timefrom threading import Threadanswer = Nonedef check(): time.sleep(2) if answer != None: return print "Too Slow"Thread(target = check).start()answer = raw_input("Input something: ")
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)