擅长:python、mysql、java
<p>尝试使用<code>os.system('python "test.py" "a" "b" "c"')</code></p>
<p>您也可以使用子流程模块来实现这种目的</p>
<p>请看一下<a href="https://stackoverflow.com/questions/1885776/python-2-6-reading-data-from-a-windows-console-application-os-system/1885778#1885778">this thread</a></p>
<p><strong>UPDATE</strong>:当我这样做,<code>os.system('"test.py" "a" "b" "c"')</code>时,我得到了类似的错误,但不是在<code>os.system('test.py "a" "b" "c"')</code>上,所以,我想假设第一个参数不应该是双引号</p>