BMI计算器
类型:程序题

题目说明

图片

class Boy():
    def __init__(self,tizhong,shengao):
        self.tizhong=tizhong
        self.shengao=shengao
    def bmi(self):
        return         ①
a=int(input('输入体重(kg):'))
b=        ②
c=Boy(a,b)
if c.bmi()<18.5:
    print("BMI:%d偏瘦。" % c.bmi())
elif         ③        :
    print("BMI:%d偏胖。" % c.bmi())
else:
    print("BMI:%d体形标准。" % c.bmi())
代码编辑器 加载中...
留空使用题目默认限制
{{resultStatus.text}}
正在加载运行记录...
乐编题库AI助手
人工客服
微信扫码联系客服
历史对话
{{ s.title || '未命名对话' }}
{{ s.created_at }}
暂无历史对话
我能帮助你什么?