擅长:python、mysql、java
<p>假设您使用的是Windows,您将使用以下命令之一,如下所示</p>
<p><a href="http://docs.python.org/2/library/subprocess.html#using-the-subprocess-module" rel="noreferrer">subprocess.call</a></p>
<pre><code>import subprocess
subprocess.call('C:\\myprogram.exe')
</code></pre>
<p><a href="http://docs.python.org/2/library/os.html" rel="noreferrer">os.startfile</a></p>
<pre><code>import os
os.startfile('C:\\myprogram.exe')
</code></pre>