Discuss / Python / 作业打卡、亲测有效

作业打卡、亲测有效

Topic source

A丶回手掏

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

#BMI w = input('Please input your weight:') h = input('Please input your height:') w = float(w) h = float(h) bmi = w/h/h print('您的BMI值为:',bmi) if bmi<18.5: print('您的体重过轻') elif 18.5<=bmi<=25: print('您的体重正常') elif 25<=bmi<=28: print('您的体重过重') elif 28<bmi<=32: print('您的体重肥胖') else: print('流弊')


  • 1

Reply