Python123:练习4: 程序的控制结构 (第2周)

height,weight = eval(input("")) BIM = weight/(pow(height,2)) print("BMI数值为:{:.2f}".format(BIM)) if BIM<=18.5: print("BMI指标为:国际'偏瘦',国内'偏瘦'") elif BIM>18.5and BIM<=24: print("BMI指标为:国际'正常',国内'正常
相关文章
相关标签/搜索