擅长:python、mysql、java
<p>这就是输出输出的方式,在内部,它很可能表示为浮点或双精度浮点。如果要显式设置数组的数据类型,可以使用命名参数<code>dtype</code></p>
<pre><code>import numpy as np
arr = np.array([1, 2, 3], dtype='float')
</code></pre>
<p>如果要控制数据在终端中的打印方式,<a href="https://stackoverflow.com/questions/2891790/how-to-pretty-print-a-numpy-array-without-scientific-notation-and-with-given-pre">refer to this</a></p>