擅长:python、mysql、java
<p>您正在创建图像的增强版本:</p>
<pre><code>enhancer.enhance(factor).show("Sharpness %f" % factor)
</code></pre>
<p>。。。然后立即丢弃它,因为它从未存储在变量中。自然它不会被拯救,因为你没有拯救它。在</p>
<p>相反,将增强图像存储在其自身的变量中,例如:</p>
^{pr2}$
<p><code>.show()</code>命令确实保存了图像,但这只是偶然的,因为如果不这样做,它就无法将其传递给查看器应用程序。这个临时文件会尽快删除,正如你发现的那样。在</p>