Python多线程 如果结束线程


使用Python多线程的时候 如何结束一个线程?

python 多线程

火狐瀏覽器 11 years, 7 months ago

没办法单独结束一个线程,可以把线程t


 t.setDaemon(True)

这样线程会随主线程退出而结束

4314253 answered 11 years, 7 months ago

Your Answer