主页
Python
四舍五入的小数
demo_numpy_ufunc_rounding2
运行 ❯
×
更改方向
保存代码
更改主题
import numpy as np arr = np.around(3.1666, 2) print(arr)
3.17