摘要: 实例01 根据身高、体重计算BMI指数,代码如下: height =float(input("请输入你的身高:")) weight =float(input("请输入你的体重:")) bmi =weight/(height*height) #判断身材是否合理 if bmi<18.5: print(" 阅读全文
posted @ 2022-09-14 21:54 MMMMeng 阅读(325) 评论(0) 推荐(0)