In this example we use events to graciously finish the thread, ... time()-t0 < 5: print(my_var) sleep(1) event.set() t.join() print(my_var).
確定! 回上一頁