We can add decimals=2 to specify the number of places we want the rounding off. ar=np.array([1.57079, 2.0943, 2.792,3.1415]) print(np.round(ar,2))
確定! 回上一頁