Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
lesson16_2
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
53fb7ba8
authored
Jun 25, 2022
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto save
parent
cd066264
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
0 deletions
diy2.py
diy3.py
diy2.py
0 → 100644
View file @
53fb7ba8
import
turtle
t
=
turtle
.
Pen
()
for
i
in
range
(
8
):
for
i
in
range
(
5
):
t
.
forward
(
50
)
t
.
right
(
72
)
t
.
right
(
360
/
8
)
turtle
.
done
()
\ No newline at end of file
diy3.py
0 → 100644
View file @
53fb7ba8
height
=
float
(
input
(
'请输入您的身高:(m)'
))
weight
=
float
(
input
(
'请输入您的体重:(kg)'
))
Bni
=
weight
/
(
height
*
height
)
if
Bni
<
18.5
:
print
(
'您的Bni经过'
)
elif
18.5
<=
Bni
<=
23.9
:
print
(
'您的Bni正常'
)
elif
24
<=
Bni
<
26.9
:
print
(
'您的Bni过重'
)
elif
27
<=
Bni
<
32
:
print
(
'您的Bni肥胖'
)
elif
Bni
>
32
:
print
(
'您的Bni非常肥胖'
)
print
(
'您的Bni指数是{:.if})'
.
format
((
Bin
))
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment