Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
bellcode
/
lesson3-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
0f1ff386
authored
Oct 31, 2021
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
c201af35
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
25 deletions
diy1.py
diy1.py
View file @
0f1ff386
import
turtle
zh
=
"www"
screen
=
turtle
.
Screen
()
mm
=
"123456"
screen
.
bgcolor
(
"pink"
)
name
=
input
(
"输入账号:"
)
pen1
=
turtle
.
Pen
()
mima
=
input
(
"输入密码:"
)
pen1
.
penup
()
if
name
==
zh
and
mima
==
mm
:
pen1
.
goto
(
-
100
,
-
100
)
print
(
"登录成功"
)
pen1
.
write
(
"祝你生日快乐"
,
font
=
(
"Times"
,
30
,
"normal"
))
\ No newline at end of file
pen1
.
hideturtle
()
pen
=
turtle
.
Pen
()
pen
.
penup
()
pen
.
goto
(
0
,
100
)
pen
.
pendown
()
pen
.
pensize
(
5
)
ls
=
screen
.
textinput
(
"写"
,
"你想要多大的爱心"
)
l
=
int
(
ls
)
pen
.
pencolor
(
"red"
)
pen
.
left
(
45
)
pen
.
forward
(
2
*
l
)
pen
.
circle
(
l
,
180
)
pen
.
right
(
90
)
pen
.
circle
(
l
,
180
)
pen
.
forward
(
2
*
l
)
pen
.
color
(
'red'
)
pen
.
hideturtle
()
turtle
.
done
()
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