Discuss / Python / 交作业!

交作业!

Topic source

单身旺2016

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

height = 1.75 weighit = 80.5 bmi = weight / (height * height) if bmi< 18.5: print('你的体重太轻了!') elif bmi< 25: print('你的体重很正常!') elif bmi< 28: print('你的体重过重了!') elif bmi< 32: print('你的体重很肥胖!') else: print('你的体重严重肥胖!')


  • 1

Reply