python imshow报错怎么解决
【摘要】实例如下所示:importmatplotlib pyplotasplt plt imshow(img) 控制台打印出图像对象的信息,而图像没有显示相关推荐:《Python入门教程》

实例如下所示:
import matplotlib.pyplot as plt
plt.imshow(img)
#控制台打印出图像对象的信息,而图像没有显示
相关推荐:《Python入门教程》
解决方法:
#引入pylab解决
import matplotlib.pyplot as plt
import pylab
plt.imshow(img)
pylab.show()
上一篇:python入门基础教程
下一篇:python list怎样生成随机数
就业培训申请领取


环球青藤
官方QQ群扫描上方二维码或点击一键加群,免费领取大礼包,加群暗号:青藤。 一键加群
最新文章
Python编程各地入口
环球青藤官方微信服务平台


刷题看课 APP下载
免费直播 一键购课
代报名等人工服务
Python编程热点排行