九州体育网 - 十年信誉网站

关于作者

Discuss / Python / 练习

练习

Topic source

放羊的实习生

#1 Created at ...

bmi = weight/(height*height) if bmi<18.5: print('低于18.5:过轻'); elif bmi>=18.5 and bmi<25 : print('18.5-25:正常'); elif bmi>=25 and bmi<28 : print('25-28:过重'); elif bmi>=28 and bmi<32 : print('28-32:肥胖'); elif bmi>=32 : print('高于32:严重肥胖');


  • 1

Reply

WARNING: You are using an old browser that does not support HTML5. Please choose a modern browser (Chrome / Microsoft Edge / Firefox / Sarafi) to get a good experience.