属性
matrix.
dtype
数组元素的数据类型。
参见
numpy.dtype
实例
>>> x array([[0, 1], [2, 3]]) >>> x.dtype dtype('int32') >>> type(x.dtype) <type 'numpy.dtype'>