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
4c4c14ec
authored
Feb 18, 2023
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
f7fc2e68
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
32 additions
and
10 deletions
diy1.py
hasyudarts.py
hhhhhhhhhhh.py
diy1.py
View file @
4c4c14ec
s
=-
60
import
turtle
a
=
input
(
"你的民治"
)
pen
=
turtle
.
Pen
()
op
=
turtle
.
Screen
()
pen
.
pencolor
(
'white'
)
pen
.
goto
(
100
,
100
)
pen
.
pencolor
(
'yellow'
)
pen
.
write
(
"你好,
"
+
a
,
font
=
(
"times"
,
3
0
,
"normal"
))
pen
.
write
(
"你好,
我的朋友"
,
font
=
(
"times"
,
2
0
,
"normal"
))
pen
.
hideturtle
()
#❤
pen1
=
turtle
.
Pen
()
a
=
op
.
textinput
(
'❤框'
,
'你想要爱心的大小'
)
a
=
int
(
a
)
pen1
.
pencolor
(
'red'
)
pen1
.
pensize
(
5
)
pen1
.
right
(
-
45
)
pen1
.
forward
(
2
*
s
)
pen1
.
circle
(
s
,
180
)
pen1
.
forward
(
2
*
a
)
pen1
.
circle
(
a
,
180
)
pen1
.
left
(
-
90
)
pen1
.
circle
(
s
,
180
)
pen1
.
forward
(
2
*
s
)
pen1
.
circle
(
a
,
180
)
pen1
.
forward
(
2
*
a
)
pen1
.
hideturtle
()
turtle
.
done
()
\ No newline at end of file
hasyudarts.py
0 → 100644
View file @
4c4c14ec
import
turtle
pen
=
turtle
.
Pen
()
for
i
in
range
(
1
,
300
):
pen
.
forward
(
i
)
pen
.
right
(
92
)
pen
.
hideturtle
()
pen
.
done
()
hhhhhhhhhhh.py
View file @
4c4c14ec
import
turtle
a
=
turtle
.
Screen
()
a
.
textinput
(
'姓名框'
,
'你的名字'
)
pen
=
turtle
.
Pen
()
op
=
turtle
.
Screen
()
a
=
op
.
textinput
(
'姓名框'
,
'你的名字'
)
a
=
int
(
a
)
pen
.
circle
(
a
,
360
)
pen
.
pen
.
left
(
-
90
)
pen
.
left
(
-
120
)
pen
.
forward
(
a
*
2
)
pen
.
left
(
-
120
)
pen
.
forward
(
a
*
2
)
pen
.
left
(
-
120
)
pen
.
forward
(
a
*
2
)
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