好久不用matplotlib

import matplotlib.pyplot as plt
plt.figure()    # 画图
plt.imshow(train_images[0])     # numpy
plt.show()  # 展示

更多文章请关注《万象专栏》