numpy.dtype.char#

属性

dtype.char#

21 种不同内置类型的唯一字符代码。

示例

>>> import numpy as np
>>> x = np.dtype(float)
>>> x.char
'd'