Import the math library import math a = 123.45 # Round up a number to its nearest integer print(math.ceil(a)) # => 124 # Round down a number ...
確定! 回上一頁