在matplotlib中对于图片的显示有如下方法(这不是重点), 其中有cmap='binary'的参数。 plt.imshow(imgs[i].reshape(28, 28), cmap='binary') #或如下: ...
確定! 回上一頁