python怎么导入图片?( 二 )


```
3. 显示图片
使用imshow()函数可以在Matplotlib的窗口中显示图片:
```
import matplotlib.pyplot as plt
plt.imshow(img)
plt.show()
```

猜你喜欢