numpy.dtype.char

属性

dtype.char

为21种不同的内置类型中的每一种提供唯一的字符代码。

实例

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