from PIL import Image # open image img = Image.open('image.jpg') # show image img.show()
from PIL import Image # create a new image img = Image.new('RGB', (200, 200), color = 'white') # display the image img.show()This code creates a new 200x200 white image using the `Image.new()` method and displays it in a window using the `_show()` method. In conclusion, the `_show()` method is a useful method in the PIL library that allows for opening and displaying images in Python.