Learn how to share data between threads. ... try: print(my_var) sleep(1) except KeyboardInterrupt: event.set() break t.join() print(my_var).
確定! 回上一頁