Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
level3-lesson18-diy3
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
66610c4a
authored
Mar 06, 2022
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto save
parent
2bfdf80c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
0 deletions
B.py
B.py
0 → 100644
View file @
66610c4a
import
turtle
t
=
turtle
.
Turtle
()
t
.
hideturtle
()
t
.
penup
()
t
.
goto
(
-
50
,
-
50
)
t
.
pendown
()
t
.
width
(
50
)
t
.
color
(
'red'
)
t
.
forward
(
100
)
t
.
circle
(
50
,
180
)
t
.
forward
(
100
)
t
.
circle
(
50
,
180
)
t1
=
turtle
.
Turtle
()
t1
.
shape
(
'turtle'
)
t1
.
penup
()
t1
.
goto
(
-
50
,
-
50
)
t1
.
speed
(
1
)
a
=
input
(
'请输入海龟跑多少圈'
)
a
=
int
(
a
)
for
x
in
range
(
a
):
print
(
'当前是第'
+
str
(
x
+
1
)
+
'圈'
)
t1
.
forward
(
100
)
t1
.
circle
(
50
,
180
)
t1
.
forward
(
100
)
t1
.
circle
(
50
,
180
)
turtle
.
done
()
\ 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