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