这可能是一个非常愚蠢的问题,但我试图谷歌关键字像less and greater signs in data type of numpy
,并没有找到任何参考。|,>和<in numpy datatype
在numpy
的doc,
x = np.array([(1.0, 2), (3.0, 4)], dtype=[('x', float), ('y', int)])
输出
array([(1.0, 2), (3.0, 4)],
dtype=[('x', '<f8'), ('y', '<i4')])
但我的电脑上,输出
array([(1.0, 2), (3.0, 4)],
dtype=[('x', '>f8'), ('y', '>i4')])
什么在dtype
做<
和>
平均和为什么有这个区别?
我的猜测是它的东西像“小/大端int/float #bits”......可能与系统有关。 –