numpy.dtype.char#

属性

dtype.char#

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

示例

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