a = np.array([1, 2, 3]) >>> b = np.array([(2.5, 1, 4.5), (5, 6, 7, 8)]) >>> a.shape # Array dimensions (3,) >>> len(a) # Length of array
確定! 回上一頁