We can assign the array returned by ones() to a variable and print its type to confirm if it is a numpy array or not,. arr = np.ones(5).
確定! 回上一頁