新陈代谢

"""
BMR计算
1.0
"""
def main():
    """

    主函数
    """
    #性别
    gender=''
    #体重70
    weight= 70
    height= 175
    #年龄25
    age= 25
    if gender =='':
        bmr=13.7*weight+5.0*height-6.8*age+66
    elif gender=='':
        bmr = 9.6 * weight + 1.8 * height - 4.7 * age + 655
    else:
        bmr=-1
    if bmr!=-1:
        print('基础代谢率(打卡)',bmr)
    else:
        print('暂不支持该性别')


if __name__ =='main':
    main()

 

posted @ 2018-11-21 22:13  逐梦武威  阅读(137)  评论(0编辑  收藏  举报