擅长:python、mysql、java
<p>根据文件:</p>
<blockquote>
<p>Once the thread’s activity is started, the thread is considered
‘alive’. It stops being alive when its run() method [or target method]
terminates – either normally, or by raising an unhandled exception.</p>
</blockquote>
<p>见:<a href="https://docs.python.org/3.7/library/threading.html#threading.Thread.run" rel="nofollow noreferrer">https://docs.python.org/3.7/library/threading.html#threading.Thread.run</a></p>
<p>在示例的上下文中,您创建的每个线程将在该线程的<code>printFortune()</code>方法完成时终止(或引发异常)。你知道吗</p>