# 先round()四舍五入取整
sum = round(res[1])
# round(value)四舍五入取整数,无小数出现
# round(value,0)四舍五入取整数,保留1位小数,小数位是0
# round(value,1)四舍五入保留1位小数
# round(value,2)四舍五入保留2位小数
print(round(3.45)) # 3
print(round(3.51)) # 4
print(round(3.45, 0)) # 3.0
print(round(3.51, 0)) # 4.0
print(round(3.45, 1)) # 3.5
print(round(3.51, 1)) # 3.5
print(round(3.45, 2)) # 3.45
print(round(3.51, 2)) # 3.51