# 创建
arr = np.array([[1, 2, 3, 4], [5, 6, 7, 8], [9, 10, 11, 12]])
print(arr)
# 重塑
arr1 = arr.reshape(2, 6)
print(arr1)
# 计算
arr1 = arr1 * 2
print(arr1)
# 横向合并 # 纵向合并
arr3 = np.array([[1, 2, 3], [4, 5, 6]])
arr4 = np.array([[7, 8, 9], [10, 11, 12]])
np.concatenate([arr3,arr4],axis=0)
np.concatenate([arr3,arr4],axis=1)