摘要: 有时候有这样的需要,在某种情况下,需要在主线程中杀死之前创建的某个线程,可以使用下面的方法,通过调用python内置API,在线程中抛出异常,使线程退出。 import threading import time import inspect import ctypes def _async_rai 阅读全文
posted @ 2019-12-04 22:16 永恒de记忆 阅读(11013) 评论(0) 推荐(1) 编辑