文章来自:
仅供交流学习,欢迎指导。
-----------------------------------------------------------------
用程序实现了 多条件 if elif 判断BMI指标问题
weight = int(input('请输入体重:') )
if weight < 18.5:
print('过轻')
elif weight >= 18 and \
weight <25:
print('正常')
elif weight >= 25 and \
weight <28:
print('过胖')
elif weight >= 28 and \
weight <32:
print('肥胖')
elif weight >= 32:
print('严重肥胖')