Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
lesson11_1
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
7fb75ac1
authored
Feb 11, 2023
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto save
parent
118ab724
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
208 additions
and
11 deletions
dzx5ergt
func.py
hfhghjg.py
hggvg.py
dzx5ergt
0 → 100644
View file @
7fb75ac1
func.py
View file @
7fb75ac1
def
new_input
():
import
turtle
total
=
[]
turtle
.
goto
(
0
,
0
)
while
True
:
turtle
.
pencolor
(
"black"
)
unit
=
input
(
"请输入:"
)
turtle
.
pensize
(
10
)
if
unit
==
'q'
:
turtle
.
pendown
()
break
turtle
.
fillcolor
(
"blue"
)
else
:
turtle
.
begin_fill
()
total
.
append
(
unit
)
turtle
.
circle
(
50
)
print
(
total
)
turtle
.
end_fill
()
new_input
()
turtle
.
forward
(
90
)
\ No newline at end of file
turtle
.
left
(
120
)
turtle
.
forward
(
180
)
turtle
.
left
(
150
)
turtle
.
goto
(
0
,
0
)
turtle
.
right
(
90
)
turtle
.
forward
(
90
)
turtle
.
right
(
120
)
turtle
.
forward
(
180
)
hfhghjg.py
0 → 100644
View file @
7fb75ac1
import
turtle
turtle
.
pendown
()
turtle
.
forward
(
200
)
turtle
.
left
(
90
)
turtle
.
forward
(
200
)
turtle
.
left
(
90
)
turtle
.
forward
(
200
)
turtle
.
left
(
90
)
turtle
.
forward
(
200
)
turtle
.
left
(
90
)
turtle
.
penup
()
turtle
.
goto
(
100
,
0
)
turtle
.
fillcolor
(
"red"
)
turtle
.
begin_fill
()
turtle
.
pendown
()
turtle
.
goto
(
200
,
100
)
turtle
.
goto
(
100
,
200
)
turtle
.
goto
(
0
,
100
)
turtle
.
goto
(
100
,
0
)
turtle
.
end_fill
()
hggvg.py
0 → 100644
View file @
7fb75ac1
import
turtle
turtle
.
penup
()
turtle
.
goto
(
0
,
0
)
turtle
.
dot
(
20
,
"red"
)
turtle
.
forward
(
40
)
turtle
.
dot
(
20
,
"red"
)
turtle
.
forward
(
-
80
)
turtle
.
dot
(
20
,
"red"
)
turtle
.
goto
(
0
,
0
)
turtle
.
forward
(
100
)
turtle
.
left
(
90
)
turtle
.
pendown
()
turtle
.
forward
(
100
)
turtle
.
left
(
90
)
turtle
.
forward
(
200
)
turtle
.
left
(
90
)
turtle
.
forward
(
200
)
turtle
.
left
(
90
)
turtle
.
forward
(
200
)
turtle
.
left
(
90
)
turtle
.
forward
(
100
)
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