Python has a built-in function round() that will, as the name suggests, round a number off: unrounded = 5.99 rounded = round(unrounded) print(rounded)
確定! 回上一頁