numpy 如果a = np.array([0,1,2,3,4,5,6,7,8,9,10]),那么a是什么类型?[副本]

bwleehnv  于 2023-05-17  发布在  其他
关注(0)|答案(1)|浏览(120)

此问题已在此处有答案

Getting the class name of an instance(12个回答)
8天前关闭
Si a = np.array([0,1,2,3,4,5,6,7,8,9,10])
A是什么类型的?
好吧,我正在学习如何使用Python,但我有很多问题,如果你能帮助我,IDK

daolsyd0

daolsyd01#

试试看就知道了。
下面是我如何得到class numpy.ndarray

>>> import numpy
>>> a = numpy.array([1, 2, 3, 4])
>>> type(a)
<class 'numpy.ndarray'>

相关问题