擅长:python、mysql、java
<pre><code>p = subprocess.Popen([sys.executable, '/path/to/script.py'],
stdout=subprocess.PIPE,
stderr=subprocess.STDOUT)
</code></pre>
<p>这将在后台启动子进程。你的脚本将继续正常运行。</p>
<p>阅读文档<a href="http://docs.python.org/library/subprocess.html" rel="noreferrer">here</a>。</p>