擅长:python、mysql、java
<p><code>.split</code>在这里没有帮你什么忙,因为引号中有空格,你不想拆分。或者直接传递一个字符串,然后让shell处理参数分隔:</p>
<pre><code>cmd = "/usr/atria/bin/cleartool setview -exec '/usr/bin/python /home/testUser/Development/Scripts/setDoneFlag_Count_Lines.py' testUser__project_5_0_myProject_001"
p=subprocess.Popen(cmd, shell=True)
</code></pre>
<p>或手动分离命令:</p>
^{pr2}$