Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
level3-lesson20-diy1
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
ff3cd916
authored
a year ago
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
a792a53b
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
38 additions
and
0 deletions
y.py
z.py
y.py
0 → 100644
View file @
ff3cd916
import
turtle
turtle
.
penup
()
turtle
.
goto
(
0
,
-
200
)
turtle
.
pendown
()
turtle
.
circle
(
200
)
turtle
.
penup
()
turtle
.
goto
(
-
100
,
50
)
turtle
.
pendown
()
turtle
.
fillcolor
(
"blue"
)
turtle
.
begin_fill
()
turtle
.
circle
(
20
)
turtle
.
end_fill
()
turtle
.
penup
()
turtle
.
goto
(
100
,
50
)
turtle
.
pendown
()
turtle
.
fillcolor
(
"blue"
)
turtle
.
begin_fill
()
turtle
.
circle
(
20
)
turtle
.
end_fill
()
turtle
.
penup
()
turtle
.
goto
(
0
,
50
)
turtle
.
pendown
()
turtle
.
circle
(
-
50
,
steps
=
3
)
turtle
.
penup
()
turtle
.
goto
(
-
150
,
-
70
)
turtle
.
pendown
()
turtle
.
goto
(
0
,
-
170
)
turtle
.
goto
(
150
,
-
70
)
turtle
.
done
()
\ No newline at end of file
This diff is collapsed.
Click to expand it.
z.py
0 → 100644
View file @
ff3cd916
r
=
float
(
input
(
"请输入半径:"
))
d
=
2
*
r
c
=
3.14
*
2
*
r
s
=
3.14
*
r
**
2
print
(
"圆的直径:
%0.2
f"
%
d
)
print
(
"圆的周长:
%0.2
f"
%
c
)
print
(
"圆的面积:
%0.2
f"
%
s
)
This diff is collapsed.
Click to expand it.
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