Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
lesson4_3
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
f33a6142
authored
Apr 24, 2024
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
23731294
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
6 deletions
1.py
24678.pppy
WPS.py
1.py
View file @
f33a6142
import
turtle
import
turtle
screen
=
turtle
.
Screen
()
screen
=
turtle
.
Screen
()
screen
=
bgcolor
(
"pink"
)
screen
.
bgcolor
(
"pink"
)
pen
=
turtle
.
p
en
()
pen
=
turtle
.
P
en
()
pen
.
penup
()
pen
.
penup
()
pen
.
goto
(
-
100
,
0
)
pen
.
goto
(
-
100
,
0
)
pen
.
write
(
"....."
,
font
=
(
"times"
,
30
,
"normal"
))
pen
.
write
(
"....."
,
font
=
(
"times"
,
30
,
"normal"
))
...
@@ -10,10 +10,12 @@ pen1=turtle.Pen()
...
@@ -10,10 +10,12 @@ pen1=turtle.Pen()
pen1
.
pencolor
(
"red"
)
pen1
.
pencolor
(
"red"
)
pen1
.
pensize
(
30
)
pen1
.
pensize
(
30
)
pen1
.
left
(
45
)
pen1
.
left
(
45
)
pen1
.
forward
(
100
)
len
=
screen
.
textinput
(
"提示"
,
"你要爱心"
)
pen1
.
circle
(
50
,
180
)
zhengshu
=
int
(
len
)
pen1
.
forward
(
2
*
zhengshu
)
pen1
.
circle
(
zhengshu
,
180
)
pen1
.
right
(
90
)
pen1
.
right
(
90
)
pen1
.
circle
(
50
,
180
)
pen1
.
circle
(
zhengshu
,
180
)
pen1
.
forward
(
100
)
pen1
.
forward
(
2
*
zhengshu
)
pen1
.
hideturtle
()
pen1
.
hideturtle
()
turtle
.
done
()
turtle
.
done
()
\ No newline at end of file
24678.pppy
0 → 100644
View file @
f33a6142
WPS.py
0 → 100644
View file @
f33a6142
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
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