numpy.dtype.base#

屬性

dtype.base#

傳回子陣列基本元素的 dtype,無論其維度或形狀為何。

範例

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