Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
lesson4_4_2
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
2d04c72a
authored
May 26, 2024
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
5c9b87bd
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
47 additions
and
0 deletions
1.py
24678.pppy
WPS.py
diy2.py
1.py
0 → 100644
View file @
2d04c72a
import
turtle
screen
=
turtle
.
Screen
()
screen
.
bgcolor
(
"pink"
)
pen
=
turtle
.
Pen
()
pen
.
penup
()
pen
.
goto
(
-
100
,
0
)
pen
.
write
(
"....."
,
font
=
(
"times"
,
30
,
"normal"
))
pen
.
hideturtle
()
pen1
=
turtle
.
Pen
()
pen1
.
pencolor
(
"red"
)
pen1
.
pensize
(
30
)
pen1
.
left
(
45
)
len
=
screen
.
textinput
(
"提示"
,
"你要爱心"
)
zhengshu
=
int
(
len
)
pen1
.
forward
(
2
*
zhengshu
)
pen1
.
circle
(
zhengshu
,
180
)
pen1
.
right
(
90
)
pen1
.
circle
(
zhengshu
,
180
)
pen1
.
forward
(
2
*
zhengshu
)
pen1
.
hideturtle
()
turtle
.
done
()
\ No newline at end of file
24678.pppy
0 → 100644
View file @
2d04c72a
WPS.py
0 → 100644
View file @
2d04c72a
nm
=
"Mrrk"
np
=
"3.1415926"
while
True
:
nnmm
=
input
(
"请输入用户名****"
)
pppl
=
input
(
"请输入密码*&^^&*^*^&"
)
if
nnmm
==
nm
and
pppl
==
np
:
print
(
"*
%
&
%
$&$#^&*
%
$^*"
)
break
if
nnmm
!=
nm
:
print
(
"输入密码****"
)
continue
if
pppl
!=
np
:
print
(
"输入用户名****&*"
)
print
(
"嘿老弟你个******"
)
\ No newline at end of file
diy2.py
0 → 100644
View file @
2d04c72a
username
=
"python"
userpassword
=
"123456"
while
True
:
name
=
input
(
"请输入用户名:"
)
password
=
input
(
"请输入密码:"
)
if
name
==
username
and
password
==
userpassword
:
print
(
"登录成功!"
)
break
print
(
"请重新输入用户和密码"
)
print
(
"欢迎来到玛酷机器人"
)
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