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

关于作者

Discuss / Python / 我写的特判应该比较调理

我写的特判应该比较调理

Topic source

TeslaP100

#1 Created at ...

height=1.75 weight=70 bmi=weight/(height*height) if 0<=bmi<18.5: print("过轻") elif 18.5<=bmi and bmi<25: print("正常 :)") elif 25<=bmi and bmi<28: print("过重") elif 28<=bmi and bmi<32: print("肥胖") else: print("严重肥胖XD")


  • 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.