Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
bellcode
/
lesson2-1-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
9d8a1d39
authored
Aug 10, 2024
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto save
parent
bf0cabee
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
50 additions
and
6 deletions
003.py
1.朋友.py
1111.py
sb.py
003.py
0 → 100644
View file @
9d8a1d39
username
=
"我zheng帅"
usepassword
=
"00111100171211001"
while
True
:
if
i
>
0
a
=
input
(
"期数认证好"
)
b
=
input
(
"期数认mima"
)
i
-=
1
if
a
==
username
and
b
==
usepassword
:
print
(
"盗垒成功"
)
break
print
(
"登录失败"
)
if
username
!=
a
:
print
(
"账号错误"
)
continue
if
usepassword
!=
b
:
prmeint
(
"密码错误"
)
else
:
print
(
"锁定"
)
exit
()
print
(
"欢迎"
)
1.朋友.py
View file @
9d8a1d39
impor
t
turtle
impor
t
turtle
import
turtle
import
turtle
s
=
turtle
.
Screen
()
s
=
turtle
.
Screen
()
s
.
bgcolor
(
"light blue"
)
s
.
bgcolor
(
"light blue"
)
pen
=
turtle
.
Pen
()
pen
=
turtle
.
Pen
()
pen
.
penup
()
pen
.
penup
()
pen
.
goto
(
100
,
-
100
)
pen
.
goto
(
100
,
-
100
)
pen
.
write
(
"悟空"
,
font
=
(
"Times"
,
18
,
"normal"
))
pen
.
write
(
"悟空"
,
font
=
(
"Times"
,
18
,
"normal"
))
pen
.
hideturtle
()
pen
.
hideturtle
()
pen1
=
turtle
.
Pen
()
pen1
=
turtle
.
Pen
()
Pen1
.
penclor
(
"red"
)
pen1
.
pensize
(
5
)
pen1
.
pensize
(
5
)
pen1
.
left
(
"red"
)
len
=
s
.
textinput
(
"提示"
,
"你想要多大的爱心"
)
lovesize
=
int
(
len
)
pen1
.
left
(
45
)
pen1
.
left
(
45
)
pen1
.
forward
(
100
)
pen1
.
forward
(
lovesize
*
2
)
pen1
.
circle
(
50
,
180
)
pen1
.
circle
(
lovesize
,
180
)
pen1
.
right
(
90
)
pen1
.
right
(
90
)
pen1
.
circle
(
50
,
180
)
pen1
.
circle
(
lovesize
,
180
)
pen1
.
forward
(
100
)
pen1
.
pforward
(
2
*
lovesize
)
pen1
.
hideturtle
()
turtle
.
done
()
turtle
.
done
()
\ No newline at end of file
1111.py
0 → 100644
View file @
9d8a1d39
sb.py
0 → 100644
View file @
9d8a1d39
import
turtle
screen
=
turtle
.
Screen
()
screen
.
textinput
(
"姓名框"
,
"你的名字是:"
)
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