擅长:python、mysql、java
<p>为了测试出了什么问题,您可以将标准输出通过管道传输,如下所示:</p>
<pre><code>import sys, subprocess
args = ['gs','-dSAFER','-dNOPAUSE','-dBATCH','-sDEVICE=jpeg','-sOutputFile=/home/user/output2.jpg /home/user/downloads/test.pdf']
output = Popen( args, stdout = sys.stdout, stderr = sys.stderr )
</code></pre>