如何在python中插入图像

Dan*_*ner 2 python import insert

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

Sam*_*bra 6

安装PIL(Python图像库):

然后:

from PIL import Image
myImage = Image.open("your_image_here");
myImage.show();
Run Code Online (Sandbox Code Playgroud)