recipe-491280.py 文件源码

python
阅读 22 收藏 0 点赞 0 评论 0

项目:code 作者: ActiveState 项目源码 文件源码
def __init__(self, func, args=(), kwargs={}):
        import thread
        def thread_bkcall():
            try:
                self.ret=func(*args, **kwargs)
                self.done=1
            except:
                self.exc=sys.exc_info()
                self.done=2
        self.id=thread.start_new(thread_bkcall, ())
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号