如何在python中插入图像

时间:2013-05-08 14:09:57

标签: python import insert

如何使用python导入或插入图像。基本上我想知道如何导入图像以及如何使用python选择文件和文件夹。

1 个答案:

答案 0 :(得分:6)

安装PIL(Python图像库):

然后:

from PIL import Image
myImage = Image.open("your_image_here");
myImage.show();