Discuss / Python / 交作业

交作业

Topic source

姬_宫_涅

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

h = 1.75 w = 80.5 b=w/(h*h) if b<18.5: print('过轻') elif 25>b>=18.5: print('正常') elif 28>b>=25: print('过重') elif 32>b>=28: print('肥胖') else: print('严重肥胖') print('数值:%d'%b)


  • 1

Reply