在这篇文章中,让我们讨论如何将NumPy数组中的元素四舍五入到最接近的整数。Python的numpy.rint()函数,可以将数组中的元素转换成最接近的整数。 语法: numpy.rint(x, ...
確定! 回上一頁