python里的round方法

  • 2020 年 1 月 13 日
  • 筆記

四舍六入,五留双

print(round(11.5))

12

print(round(10.5))

10

print(round(10.6))

11

print(round(11.4))

11

Exit mobile version