Discuss / Python / 试试

试试

Topic source

飞哥霸气8

#1 Created at ... [Delete] [Delete and Lock User]

height=1.75 weight=80.5 BMI=weight/(height*height) BMI 26.285714285714285 if BMI<25: if BMI<18.5: print('您的体重过轻') else: print('您的体重正常') elif BMI>28: if BMI>32: print('您的体重严重肥胖') else: print('您的体重肥胖') else: print('你的体重过重')


  • 1

Reply