计算身体质量指数BMI(多分支选择结构)

x=list(map(eval,input().split(','))) BMI=x[1]/x[0]**2 print('BMI:'+str('{:.2f}'.format(BMI))) a='Domestic:' b='International:' g1='underweight' g2='normal' g3='overweight' g4='obesity' if BMI<18.5 :
相关文章
相关标签/搜索