>>> math.trunc(12.533222) 12
>>> round(12.2544) 12
也可以:
int(12.0)=12
>>> round(12.2544, 3) 12.254
>>> math.ceil(12.4584)
13
>>> math.floor(12.4584)
12