擅长:python、mysql、java
<pre><code>np.zeros((20, 50), dtype=np.float32) # or any other type; default: np.float64
</code></pre>
<p><a href="https://docs.scipy.org/doc/numpy/reference/generated/numpy.zeros.html" rel="nofollow noreferrer">Link to the Docs</a></p>
<p>备注:没有经验丰富的numpy用户会在您的示例中使用这种方法!在</p>