age = float(input("请输入age(年龄)=")) HRrest = float(input("请输入HRrest=")) gender = input(input("请输入 male or female:")) if gender == 'male': n = 220 else: n = 210 low = (n-age-HRrest)*0.6+HRrest high = (n-age-HRrest)*0.8+HRrest print ('最适宜的心率是:',low,'~',high
原创文章,作者:修行,如若转载,请注明作者昵称:修行及出处:https://www.xiuxingstudio.com/subject-knowledge/high-school-information-technology/1012.html
评论列表(1条)
写的不错