for i, img_path in enumerate(pneumonia_images): sp = plt.subplot(2, 4, i+1) sp.axis('关闭')
# Read in the image using Matplotlib's imread() function img = mpimg.imread(img_path) plt.imshow(img)
plt.show()
我得到这个输出而不是图像