Пример функции формы Python Numpy Проверка значения последнего измерения
# Welcome to softhunt.net
import numpy as npy
# creating an array of 6 dimension
# using ndim
arr = npy.array([6, 3, 5, 6, 12, 2], ndmin=7)
# printing array
print(arr)
# verifying the value of last dimension
print('shape of an array :', arr.shape)
Outrageous Ostrich