def getBMI(height, weight): #定义函数getBMI
print(weight / (height * height)) #BMI计算公式
# 引用函数getBMI
getBMI(, ) # 输入'height'or'weight'
简单Python,计算BMI
最新推荐文章于 2025-04-04 19:11:51 发布
def getBMI(height, weight): #定义函数getBMI
print(weight / (height * height)) #BMI计算公式
# 引用函数getBMI
getBMI(, ) # 输入'height'or'weight'