Open youtux opened 9 years ago
Rather than
class sleep10(threading.Thread): def run(self): time.sleep(10) thr = sleep10() thr.start()
you can just use:
thr = threading.Thread(target=time.sleep, args=(10,)) thr.start()
Rather than
you can just use: