擅长:python、mysql、java
<p>使用numpy版本1.6.2,<code>dtype = 'datetime64,a5,a5,i4'</code>不会产生预期的数据类型:</p>
<pre><code>In [36]: na_trades = np.zeros((number_of_orders,), dtype = 'datetime64,a5,a5,i4')
In [37]: na_trades
Out[37]: array([1970-01-01 00:00:00], dtype=datetime64[us])
</code></pre>
<p>虽然我可能错了,但在我看来这是个错误。试试看:</p>
^{pr2}$