擅长:python、mysql、java
<p>您可以使用模块PIL打开图像</p>
<pre><code>import Image
def popup():
filename = "logo.jpg" # Name the file you want to open
image = Image.open( filename )
image.show() # Shows the image
</code></pre>
<p>下载模块的链接(3.x版本还不可用):<a href="http://www.pythonware.com/products/pil/" rel="nofollow">http://www.pythonware.com/products/pil/</a></p>