import threading
timer = threading.Timer(0.2, self.fun_timer)
timer.setDaemon(True) # !!
timer.start()
解决python父线程关闭后子线程不关闭问题
最新推荐文章于 2022-11-27 19:57:53 发布
import threading
timer = threading.Timer(0.2, self.fun_timer)
timer.setDaemon(True) # !!
timer.start()