• Tools
  • Articles
  • Q&A
  • Login
0 0

Python多线程 如果结束线程


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

python 多线程

12 years ago
火狐瀏覽器

火狐瀏覽器


share
火狐瀏覽器 12 years ago

Answers

0

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


 t.setDaemon(True)

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

answered 12 years ago
火狐瀏覽器

4314253


share
4314253 answered 12 years ago

Your Answer

Ask Question
Related questions

python如何为当前进程获得锁和解除锁

[python] 大量小文件读写并行处理方案

Python:在多线程中使用进度条(progressbar)碰到的问题

python爬虫多线程假死怎么解决?

python threading开启的线程中用multiprocessing再开启多线程出现A...

python中如何实现“A线程执行,B线程就执行,A停止,B就停止”?