擅长:python、mysql、java
<p>多亏了所有帮助我的人,我终于找到了一个办法。在</p>
<p>通过添加以下内容:</p>
<pre><code>lh_url_ok = os.system("lighthouse quiet {} {} {} {} {} output-path={}/{}.html ".format(DevEmuStr,throttlingVar,CacheStr,presetVar,url,reportlocation,filename))
if lh_url_ok >0:
print("Error")
</code></pre>
<p>我可以检查退出代码是否高于0(0=无错误)</p>