你如何在python中显示图片? [英] How do you show a picture in python?

查看:273
本文介绍了你如何在python中显示图片?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道,是否可以在python中显示图像?

I am wondering, is it possible to display images in python?

推荐答案

最简单的方法是使用 PIL Image.show 方法。这会在图像上显示外部查看器程序。

The easiest way is to use PIL and the Image.show method. This brings up an external viewer program on the image.

这篇关于你如何在python中显示图片?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆