Discuss / Python / 随堂练习

随堂练习

Topic source

height=1.75 weight=80.5 BMI=weight/(height**2) if BMI>32: print('肥成这样,还不减肥!') elif BMI>28: print('有点肥胖了哦!') elif BMI>25: print('你的体重超标啦!') elif BMI>18.5: print('完美身材') else: print('你太瘦了!')

NTxinlang

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

你好调皮


  • 1

Reply