Python BMI计算器:简单代码实现BMI指数计算
height = float(input('请输入身高(单位:米):')) weight = float(input('请输入体重(单位:千克):'))
bmi = round(weight / (height ** 2), 2)
print('您的BMI指数为:', bmi)
原文地址: https://www.cveoy.top/t/topic/onzC 著作权归作者所有。请勿转载和采集!
安全问答是一个知识全球问答,包含丰富的问答知识
height = float(input('请输入身高(单位:米):')) weight = float(input('请输入体重(单位:千克):'))
bmi = round(weight / (height ** 2), 2)
print('您的BMI指数为:', bmi)
原文地址: https://www.cveoy.top/t/topic/onzC 著作权归作者所有。请勿转载和采集!