如何在python中插入图像 [英] How to insert an image in python
本文介绍了如何在python中插入图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何使用python导入或插入图像。基本上我想知道如何导入图像以及如何使用python选择文件和文件夹。
how do you import or insert an image using python.Basically I want to know how to import an image and how to select the file and folder its in using python.
推荐答案
安装PIL(Python图像库):
Install PIL(Python Image Library) :
然后:
import Image
myImage = Image.open("your_image_here");
myImage.show();
这篇关于如何在python中插入图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文