Use numpy.array.size to find the length of a NumPy array · numpy_array = np.array([[1, 2], [3, 4]]) · total_length = numpy_array.size · print(total_length).
確定! 回上一頁