属性
chararray.
real
数组的实际部分。
参见
numpy.real
等效函数
实例
>>> x = np.sqrt([1+0j, 0+1j]) >>> x.real array([ 1. , 0.70710678]) >>> x.real.dtype dtype('float64')