显示图片

import matplotlib.pyplot as plt
In[22]: img = plt.imread(“ting.jpeg”)
In[23]: img.shape
Out[23]: (334, 500, 3)
In[24]: plt.imshow(img)
Out[24]: <matplotlib.image.AxesImage at 0x7f7fab626a58>
In[25]: plt.show()

猜你喜欢

转载自blog.csdn.net/weixin_44274975/article/details/88553041