height = float(input("你的身高:"))weight = float(input("你的体重:"))bmi = weight/(height*height)print("你的bmi指数:")if bmi <18.5: print(体重过轻)if bmi > 29.9: print(肥胖)if bmi >=18.5 and bmi <29.9: print(正常)
2019-07-03 11:11:22