使用随机数生成图片
#0-255生成jpg
s1=np.random.randint(0,255,(456, 730),dtype=int)
s1
plt.imshow(s1)
#0-1生成png
s2=np.random.random((22,55,3))
s2
plt.imshow(s2)
使用随机数生成图片
#0-255生成jpg
s1=np.random.randint(0,255,(456, 730),dtype=int)
s1
plt.imshow(s1)
#0-1生成png
s2=np.random.random((22,55,3))
s2
plt.imshow(s2)