YCTH

  • math保留两位小数的方法

    一、python保留两位小数 num = 3.1415926 print(round(num,2)) 在Python中,可以使用round函数来保留指定小数位数的数字。在上述代码中…

    编程 2024-10-24