读取图片显示图片需要引用的模块: import matplotlib.image as mpimg 读取图片img = mpimg.imread('./001.jpg')print(img) 打印出来的数据为一个三维数组 显示图片通过 imshow 显示图片, 带刻度: imgplot = plt.imshow(img) 参考: Python matplotlib 的 Image tutorial图像处理教程Python 读取并显示图片的两种方法