擅长:python、mysql、java
<p>更好的方法:</p>
<pre><code>from subprocess import call
call('ls')
</code></pre>
<p>请检查:
<a href="https://docs.python.org/2/library/subprocess.html" rel="nofollow noreferrer">https://docs.python.org/2/library/subprocess.html</a></p>