擅长:python、mysql、java
<p>根据<a href="https://msdn.microsoft.com/en-us/library/windows/desktop/ms686722(v=vs.85).aspx" rel="nofollow noreferrer">this documentation</a>:</p>
<blockquote>
<p>If a process is terminated by <code>TerminateProcess</code>, all threads of the
process are terminated immediately <strong>with no chance to run additional
code.</strong></p>
</blockquote>
<p>这意味着在这种情况下你无能为力。在</p>
<p>正如详细的<a href="https://bugs.python.org/issue26350#msg260201" rel="nofollow noreferrer">here</a>,信号在ms windows上工作不太好。在</p>