擅长:python、mysql、java
<p><a href="https://stackoverflow.com/questions/2381241/what-is-the-subprocess-popen-max-length-of-the-args-parameter">This</a>其他问题与您的类似,但对于Windows。在这种情况下,您可以通过避免<code>shell=True</code>选项来绕过任何shell限制。</p>
<p>否则,您可以提供一个文件列表给<code>subprocess.Popen()</code>,正如在该场景中所做的那样,并且正如@aron Digulla所建议的那样。</p>