import matplotlib.pyplot as plt直接调用数组即可获取测试的图片数据,然后保存。
(train_images,train_labels),(test_images,test_labels) = mnist.load_data()
plt.imsave('/data/wwwroot/default/Data/shouxiewenzi.jpg', test_images[0])
网友回复
import matplotlib.pyplot as plt直接调用数组即可获取测试的图片数据,然后保存。
(train_images,train_labels),(test_images,test_labels) = mnist.load_data()
plt.imsave('/data/wwwroot/default/Data/shouxiewenzi.jpg', test_images[0])
网友回复