Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
bellcode
/
lesson2-2_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
502946c5
authored
Apr 10, 2021
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
612702af
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
8 deletions
dk.py
jfhdsuf.py/kd.py
mpm.py
dk.py
0 → 100644
View file @
502946c5
import
turtle
screen
=
turtle
.
Screen
()
)
screen
.
textinput
(
"提示"
,
"你想要的爱心大小是"
:
turtle
.
done
()
jfhdsuf.py/kd.py
0 → 100644
View file @
502946c5
username
=
"python"
userpassword
=
"123456"
name
=
input
(
"请输入账号:"
)
password
=
input
(
"请输入密码:"
)
if
(
name
==
username
)
and
(
password
==
userpassword
):
print
(
"登陆成功"
)
\ No newline at end of file
mpm.py
View file @
502946c5
import
turtle
#p = turtle.P
en()
#p.write("诺伊,你好\n我会用编辑器打字了",font=("times",30,"normal")
)
#turtle.done(
)
screen
=
turtle
.
Scre
en
()
len
=
screen
.
textinput
(
"提示"
,
"你想要的爱心大小是:"
)
size
=
int
(
len
)
p1
=
turtle
.
Pen
()
p1
.
pensize
(
5
)
p1
.
pencolor
(
"
red
"
)
p1
.
pencolor
(
"
green
"
)
p1
.
left
(
45
)
p1
.
forward
(
100
)
p1
.
circle
(
50
,
180
)
p1
.
forward
(
size
*
2
)
p1
.
circle
(
size
,
180
)
p1
.
right
(
90
)
p1
.
circle
(
50
,
180
)
p1
.
forward
(
100
)
p1
.
circle
(
size
,
180
)
p1
.
forward
(
size
*
2
)
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