Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
lesson7_3
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
4c25addf
authored
Apr 30, 2022
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto save
parent
a16a0da1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
59 additions
and
6 deletions
123.py
Untitled-1.py.py
diy3.py
123.py
0 → 100644
View file @
4c25addf
import
turtle
pen
=
turtle
.
Pen
()
for
i
in
range
(
6
):
pen
.
forward
(
100
)
pen
.
left
(
60
)
pen
.
hideturtle
()
turtle
.
done
()
\ No newline at end of file
Untitled-1.py.py
0 → 100644
View file @
4c25addf
import
turtle
screen
=
turtle
.
Screen
()
screen
.
bgcolor
(
light
blue
)
pen
=
turtle
.
Pen
()
pen
.
penup
()
pen
.
goto
(
-
100
,
0
)
text
=
screen
.
textinput
(
'提示'
,
'你想对2020年说什么'
)
pen
.
write
(
text
,
font
=
(
"Times"
,
20
,
"normal"
))
pen
.
hideturtle
()
turtle
.
done
()
\ No newline at end of file
diy3.py
View file @
4c25addf
message
=
"诺依,周末一起去看动漫展吧!"
# 请使用索引的知识,取出message所有元素(不用遍历的方式)
for
i
in
range
(
len
(
message
)):
print
(
message
[
i
])
\ No newline at end of file
import
turtle
pen
=
turtle
.
Pen
()
pen1
=
turtle
.
Pen
()
pen2
=
turtle
.
Pen
()
pen3
=
turtle
.
Pen
()
pen4
=
turtle
.
Pen
()
pen
.
pencolor
(
'blue'
)
pen
.
penup
()
pen
.
goto
(
-
100
,
0
)
pen
.
pendown
()
pen
.
circle
(
50
)
pen
.
pensize
(
15
)
pen1
.
pencolor
(
'black'
)
pen1
.
pendown
()
pen1
.
circle
(
50
)
pen1
.
pensize
(
15
)
pen2
.
pencolor
(
'red'
)
pen2
.
penup
()
pen2
.
goto
(
100
,
0
)
pen2
.
pendown
()
pen2
.
circle
(
50
)
pen2
.
pensize
(
15
)
pen3
.
pencolor
(
'yellow'
)
pen3
.
penup
()
pen3
.
goto
(
-
50
,
-
100
)
pen3
.
pendown
()
pen3
.
circle
(
50
)
pen3
.
pensize
(
15
)
pen4
.
pencolor
(
'green'
)
pen4
.
penup
()
pen4
.
goto
(
50
,
-
100
)
pen4
.
pendown
()
pen4
.
circle
(
50
)
pen
.
hideturtle
()
pen1
.
hideturtle
()
pen2
.
hideturtle
()
pen3
.
hideturtle
()
pen4
.
hideturtle
()
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