Discuss / Python / 应该可以

应该可以

Topic source

关er郑祥

#1 Created at ... [Delete] [Delete and Lock User]

a=input('请输入你的身高(/m):') b=input('请输入你的体重(/kg):') a=float(a) b=float(b) BMI=b/(a*a) print(BMI) if BMI>=32: print('严重肥胖') elif BMI>=28: print('体重肥胖') elif BMI>=25: print('体重过重') elif BMI>=18.5: print('体重正常') else: print('体重过轻')


  • 1

Reply