from PIL import Image img = Image.open('code_img.png') img.show()
from PIL import Image import matplotlib.pyplot as plt img = Image.open('code_img.png') plt.figure('pic') plt.imshow(img) plt.axis('off') # 关闭坐标 plt.show()