擅长:python、mysql、java
<p>你看过<a href="http://twistedmatrix.com/documents/8.1.0/api/twisted.internet.task.LoopingCall.html" rel="nofollow noreferrer">docs</a>的<a href="http://twistedmatrix.com/documents/8.1.0/api/twisted.internet.task.LoopingCall.html" rel="nofollow noreferrer">docs</a>了吗?不涉及线程,它在主线程(通常是reactor的线程)上运行(每秒钟一次,就像调用它的<code>start</code>方法一样)。<a href="http://twistedmatrix.com/documents/10.0.0/api/twisted.internet.interfaces.IReactorThreads.html#callInThread" rel="nofollow noreferrer">callInThread</a>是导致函数在单独线程上运行的两种方法中的唯一一种。在</p>