GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — RecentProject/python_selflearning_code/BMI.py at python · sys0527/RecentProject

Expand file tree

/

BMI.py

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
13 lines (13 loc) · 324 Bytes
/

BMI.py

Copy path

File metadata and controls

13 lines (13 loc) · 324 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
#BMI练习
h = float(input('请输入身高:【以m为单位】'))
w = float(input('请输入体重:'))
if w/h**2 < 18.5:
print('过轻')
elif w/h**2 > 32:
print('严重肥胖')
elif 18.5 <= w/h**2 < 25:
print('正常')
elif 25 <= w/h**2 < 28:
print('过重')
elif 28 <= w/h**2 < 32:
print('肥胖')
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.