EXGEZ

  • Python保留小数点后两位

    一、使用内置函数round() Python内置函数round()可以用来保留小数点后指定位数的数字。它的用法如下: num = 12.34566 round_num = roun…

    编程 2025-04-12