name 3name name3 _name name_3 name&3 True
1
if p < p1:
2
print("你的运动心率提示你:建议增加运动量")
3
elif p>p2:
4
print("你的运动心率提示你:建议降低运动量")
5
else:
6
print("你的运动心率提示你:运动量合适")
r = float(input("请输入圆的半径值"))
S=3.14*r*r
print("半径为",r, "的圆的面积是",S)
height=input('你的身高是多少米:')
height=float(height)
weight =input('你的体重是多少KG:')
weight =float(weight)
BMI=weight/(height*height)
if BMI>=24.9:
print('肥胖')
① BMI<24.9 ② BMI>=18.5:
print('正常')
print('偏瘦')
① ②
微信扫码预览、分享更方便