python装饰器中的计时器thd.strat用法

            thd = KThread(target=_new_func, args=(), kwargs=new_kwargs)
            thd.start()
            thd.join(seconds)
            alive = thd.isAlive()
            thd.kill() # kill the child thread

https://my.oschina.net/u/2367514/blog/668434

posted @ 2017-11-21 17:47  夜歌乘年少  阅读(388)  评论(0编辑  收藏  举报