如何杀死使用thread.start_new_thread启动的线程?谢谢!
import thread
def test_thread():
for i in range(100):
sleep(1)
print('time %r' % time())
print('%r' % 'thread is done')
thread.start_new_thread(test_thread,())
Here是我的问题的解决方案,其中线程可以暂停并按需恢复。