数组初始化
x=np.array([[1,2]])
x=np.zeros((2,3))
生成随机数
w=np.random.randn(2,3)
PIL image转换成array
img = np.asarray(image)
array转换成image
Image.fromarray(np.uint8(img))
x=np.array([[1,2]])
x=np.zeros((2,3))
w=np.random.randn(2,3)
img = np.asarray(image)
Image.fromarray(np.uint8(img))