numpy.dtype.base

属性

dtype.base

返回子数组的基元素的数据类型,无论其大小或形状如何。

实例

>>> x = numpy.dtype('8f')
>>> x.base
dtype('float32')
>>> x =  numpy.dtype('i2')
>>> x.base
dtype('int16')