Anzahl der Elemente in mehrdimensionalem Array-Python
import numpy as np
size = 1
for dim in np.shape(a): size *= dim
Xerothermic Xenomorph
import numpy as np
size = 1
for dim in np.shape(a): size *= dim