np.reshape(),np.random.seed()的用法以及np.random.shuffle()和np.random.permutation()的区别
importnumpyasnpa=np.array([[1,2,3,4],[2,3,4,5],[3,4,5,6]])print(a.shape)b=np.reshape(a,[2,6])print(b)print(b.shape)c=np.reshape(a,[2,-1])print(c)print(c.shape)a是一个二维的数组然后用reshape函数进行装换,参数a代表的是要变换的数组列表