Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
bellcode
/
lesson3-5-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
24b0e7eb
authored
Nov 25, 2023
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
f9b6bca9
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
76 additions
and
0 deletions
.py
II.py
LR.py
YN.PY
syz.py
.py
0 → 100644
View file @
24b0e7eb
import
turtle
pen
=
turtle
.
Pen
()
pen
.
penup
()
pen
.
goto
(
-
100
,
100
)
pen
.
pendown
()
for
i
in
range
(
4
):
pen
.
forward
(
200
)
pen
.
right
(
90
)
pen
.
penup
()
pen
.
goto
(
-
60
,
-
20
)
pen
.
pencolor
()
for
i
in
range
(
3
):
pen
.
fillcolor
(
'red'
)
pen
.
begin_fill
()
pen
.
pendown
()
pen
.
circle
(
15
)
pen
.
penup
()
pen
.
forward
(
60
)
pen
.
end_fill
()
turtle
.
done
()
\ No newline at end of file
II.py
0 → 100644
View file @
24b0e7eb
username
=
"RINA"
userpassword
=
"11322"
while
True
:
name
=
input
(
"请输入你的名字:"
)
password
=
input
(
"请输入账号密码:"
)
if
username
==
name
and
userpassword
==
password
:
print
(
"登录成功"
)
break
if
username
!=
name
:
print
(
"用户名错误,请重新输入:"
)
if
userpassword
!=
password
:
print
(
"密码错误。请重新输入:"
)
print
(
"登录失败,请重新登录"
)
LR.py
0 → 100644
View file @
24b0e7eb
import
turtle
pen
=
turtle
.
Pen
()
pen
.
shape
(
"turtle"
)
pen
.
pensize
(
2
)
pen
.
color
(
"black"
)
pen
.
circle
(
999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999989989999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999991111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222333333333333333
,
360
)
pen
.
left
(
90
)
pen
.
forward
(
100
)
pen
.
penup
()
pen
.
goto
(
-
50
,
50
)
pen
.
pendown
()
pen
.
right
(
90
)
pen
.
forward
(
100
)
pen
.
penup
()
pen
.
goto
(
150
,
-
50
)
pen
.
write
(
"今天天气晴天,心情好"
,
font
=
(
"Times"
,
15
,
"normal"
))
pen
.
hideturtle
()
turtle
.
done
()
\ No newline at end of file
YN.PY
0 → 100644
View file @
24b0e7eb
import
turtle
pen
=
turtle
.
Pen
()
pen
.
shape
(
"turtle"
)
pen
.
color
(
"black"
)
pen
.
pensize
(
3
)
pen
.
left
(
45
)
pen
.
forward
(
100
)
pen
.
left
(
90
)
pen
.
circle
(
50
,
180
)
pen
.
right
(
180
)
pen
.
forward
(
100
)
pen
.
right
(
90
)
pen
.
circle
(
-
50
,
180
)
pen
.
hideturtle
()
turtle
.
done
()
\ No newline at end of file
syz.py
0 → 100644
View file @
24b0e7eb
i
==
0
while
i
<
5
:
print
(
"悟空"
)
i
=
i
+
1
if
i
==
4
:
break
\ 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