a = np.array(a). Or, you can skip the warm up step, directly have a = np.array([1,2,3]). Check the type print(type(a)). You will get <class 'numpy.ndarray'>.
確定! 回上一頁