Numpy学习:分割
import numpy as np
a = np.arange(12).reshape(3,4)
print(np.split(a,2,axis=1))
print(np.split(a,3,axis=0))
#不等量分割
print(np.array_split(a,3,axis=1))
import numpy as np
a = np.arange(12).reshape(3,4)
print(np.split(a,2,axis=1))
print(np.split(a,3,axis=0))
#不等量分割
print(np.array_split(a,3,axis=1))