numpy.dtype.char#

attribute

dtype.char#

每个 21 种不同的内置类型的唯一字符代码.

示例

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