3

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

4

1 回答 1

8

安装 PIL(Python 图像库):

然后:

from PIL import Image
myImage = Image.open("your_image_here");
myImage.show();
于 2013-05-08T14:19:27.313 回答