新陈代谢
""" 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()