擅长:python、mysql、java
<p>1.使用<a href="https://docs.python.org/2/library/subprocess.html#popen-constructor" rel="nofollow">os.popen()</a>执行命令:</p>
<pre><code>import os
os.popen("maf2hal inputfile outputfile")
</code></pre>
<p>2.<a href="https://docs.python.org/2/library/subprocess.html#subprocess.call" rel="nofollow">subprocess.call()</a></p>
<pre><code>from subprocess import call
call("maf2hal inputfile outputfile", shell=True)
</code></pre>