传递给 round() 参数 ndigits 可以是负数,这种情况下回相应取整到十位、百位、千位:. a = 1627731 print(round(a, -1)) # 1627730 print(round(a, ...
確定! 回上一頁