擅长:python、mysql、java
<p>我不知道它背后的全部历史,但第二个<code>int64</code>实际上是{<cd2>}。在</p>
<pre><code>In [1]: import numpy as np
In [2]: from numpy.core.numeric import _typelessdata
In [3]: _typelessdata
Out[4]: [numpy.int64, numpy.float64, numpy.complex128, numpy.int64]
In [5]: id(_typelessdata[-1]) == id(np.longlong)
Out[5]: True
</code></pre>
<p><code>numpy.longlong</code>应该是<a href="http://docs.scipy.org/doc/numpy-dev/reference/arrays.scalars.html#built-in-scalar-types" rel="nofollow">directly correspond to C's ^{<cd4>} type</a>。C的<code>long long</code>被指定为至少64位宽,但确切的定义由编译器决定。在</p>
<p>我的猜测是<code>numpy.longlong</code>在大多数系统上是<code>numpy.int64</code>的另一个实例,但是如果C编译器将<code>long long</code>定义为比64位更宽的内容,则允许它是不同的。在</p>