擅长:python、mysql、java
<p>当使用<code>subprocess.call</code>时,您不能这样做,因为它在运行子进程时会中断您的程序</p>
<p>如何终止使用<code>subprocess.Popen</code>创建的子进程在<a href="https://stackoverflow.com/questions/4789837/how-to-terminate-a-python-subprocess-launched-with-shell-true">this question</a>中给出了答案</p>