用python计算BMI,低于18.5,过轻,在18.5~23.9,正常,24~27.9超重,大于28,肥胖
def bmi(weight):
if weight<18.5:
print('过轻')
elif weight<24:
print('正常')
elif weight<28:
print('超重')
else:
print('肥胖')
weight=round(float(input()),1)
bmi(weight)