本文简要介绍 python 语言中 numpy.dtype.base
的用法。
用法:
dtype.base
返回子数组的基本元素的 dtype,无论它们的维度或形状如何。
例子:
>>> x = numpy.dtype('8f') >>> x.base dtype('float32')
>>> x = numpy.dtype('i2') >>> x.base dtype('int16')
相关用法
- Python numpy dtype.byteorder用法及代码示例
- Python numpy dtype.isbuiltin用法及代码示例
- Python numpy dtype.shape用法及代码示例
- Python numpy dtype.ndim用法及代码示例
- Python numpy dtype.alignment用法及代码示例
- Python numpy dtype.names用法及代码示例
- Python numpy dtype.__class_getitem__用法及代码示例
- Python numpy dtype.flags用法及代码示例
- Python numpy dtype.fields用法及代码示例
- Python numpy dtype.subdtype用法及代码示例
- Python numpy dtype.descr用法及代码示例
- Python numpy dtype.kind用法及代码示例
- Python numpy dtype.metadata用法及代码示例
- Python numpy dtype.newbyteorder用法及代码示例
- Python numpy dtype.char用法及代码示例
- Python numpy dtype.num用法及代码示例
- Python numpy dtype.name用法及代码示例
- Python numpy dtype.itemsize用法及代码示例
- Python numpy dtype用法及代码示例
- Python numpy diagonal用法及代码示例
- Python numpy divmod用法及代码示例
- Python numpy diagflat用法及代码示例
- Python numpy delete用法及代码示例
- Python numpy dec.setastest用法及代码示例
- Python numpy datetime_as_string用法及代码示例
注:本文由纯净天空筛选整理自numpy.org大神的英文原创作品 numpy.dtype.base。非经特殊声明,原始代码版权归原作者所有,本译文未经允许或授权,请勿转载或复制。