一、opencv
import cv2 as cv
img1 = cv.imread('图像路径和名称及格式')
cv.imshow('图像句柄', img1)
cv.waitkey(0)
二、matplotlib
import matplotlib.pyplot as plt
import matplotlib.image as mpimg
img2 = mpimg.imread('图像路径和名称及格式')
plt.imshow(img2)
plt.show()
三、 PIL
from PIL import Image
img3 = Image.open('图像路径和名称及格式')
img3.show()