Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
bellcode
/
lesson2-1-1_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
6a621e8f
authored
Feb 13, 2022
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
c256c561
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
56 additions
and
2 deletions
1234.py
diy1.py
wet.py
yu.py
1234.py
0 → 100644
View file @
6a621e8f
import
turtle
as
t
,
random
as
r
t
.
speed
(
99999999999999999999999999999
)
list
=
[
"red"
,
"orange"
,
"yellow"
,
"green"
,
"cyan"
,
"blue"
,
"purple"
]
for
i
in
range
(
20000
):
x
=
r
.
randint
(
-
500
,
500
)
y
=
r
.
randint
(
-
500
,
500
)
b
=
r
.
randint
(
10
,
100
)
c
=
r
.
choice
(
list
)
t
.
pu
()
t
.
goto
(
x
,
y
)
t
.
pendown
()
t
.
dot
(
b
,
c
)
diy1.py
View file @
6a621e8f
# 我们都爱夸夸夸
import
turtle
\ No newline at end of file
pen
=
turtle
.
Pen
()
pen
.
write
(
"Hi"
,
font
=
(
"Times"
,
18
,
"normal"
))
pen
.
hideturtle
()
turtle
.
done
()
\ No newline at end of file
wet.py
0 → 100644
View file @
6a621e8f
import
turtle
as
t
list
=
[
"red"
,
"orange"
,
"yellow"
,
"green"
,
"cyan"
,
"blue"
,
"purple"
]
r
=
320
a
=-
320
t
.
speed
()
for
i
in
range
(
7
):
t
.
pensize
(
20
)
t
.
pencolor
(
list
[
i
])
t
.
penup
()
t
.
goto
(
a
,
0
)
t
.
pendown
()
a
=
a
+
20
t
.
seth
(
-
90
)
r
=
r
-
20
t
.
circle
(
r
,
-
180
)
\ No newline at end of file
yu.py
0 → 100644
View file @
6a621e8f
import
turtle
as
t
list
=
[
"black"
,
"orange"
,
"yellow"
,
"green"
,
"cyan"
,
"blue"
,
"rad"
]
r
=
320
a
=-
320
t
.
speed
()
for
i
in
range
(
7
):
t
.
pensize
(
59
)
t
.
pencolor
(
list
[
i
])
t
.
penup
()
t
.
goto
(
a
,
0
)
t
.
pendown
()
a
=
a
+
59
t
.
seth
(
-
90
)
r
=
r
-
59
t
.
circle
(
r
,
-
180
)
\ 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