【学习笔记之Python篇】round( )方法

    科技2026-04-09  6

    描述:

    round(x,n )方法返回浮点数x的四舍五入值。 x : 数值 n : 保留四舍五入的位数

    例子:

    print(round(3.6899,2))

    结果:

    3.69
    Processed: 0.011, SQL: 9