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
c1199193
authored
3 years ago
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
8062ac09
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
4 deletions
1.py
2.py
1.py
View file @
c1199193
import
turtle
c
=
turtle
.
Screen
()
c
.
bgcolor
(
"light blue"
)
a
=
turtle
.
Pen
()
a
.
penup
()
a
.
goto
(
100
,
-
100
)
a
.
write
(
"你好"
,
font
=
(
"Times"
,
20
,
"normal"
))
a
.
hideturtle
()
b
=
turtle
.
Pen
()
len
=
c
.
textinput
(
"提示"
,
"你想要多大的尺寸"
)
lovesize
=
int
(
len
)
b
.
pensize
(
5
)
b
.
pencolor
(
"red"
)
b
.
left
(
45
)
b
.
forward
(
100
)
b
.
circle
(
50
,
180
)
b
.
forward
(
2
*
lovesize
)
b
.
circle
(
lovesize
,
180
)
b
.
right
(
90
)
b
.
circle
(
50
,
180
)
b
.
forward
(
100
)
b
.
circle
(
lovesize
,
180
)
b
.
forward
(
2
*
lovesize
)
b
.
hideturtle
()
turtle
.
done
()
\ No newline at end of file
This diff is collapsed.
Click to expand it.
2.py
0 → 100644
View file @
c1199193
a
=
"123"
b
=
"1234"
while
True
:
c
=
input
(
"请输入"
)
d
=
input
(
"请输入"
)
if
a
==
c
and
b
==
d
:
print
(
"成功"
)
break
if
a
!=
c
:
print
(
"账号错误"
)
if
b
!=
d
:
print
(
"密码错误"
)
print
(
"登录失败"
)
\ No newline at end of file
This diff is collapsed.
Click to expand it.
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