Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
lesson4_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
56bff746
authored
Nov 08, 2020
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
bded76d5
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
3 deletions
diy3.py
画风车.py
diy3.py
0 → 100644
View file @
56bff746
from
random
import
randint
#导入随机randint()函数
from
time
import
sleep
#导入sleep()函数
#导入函数
i
=
5
a
=
0
username
=
[
'1'
]
userpassword
=
[
1
]
while
True
:
if
i
>
0
:
name
=
input
(
"请输入用户名:"
)
if
name
in
username
:
password
=
input
(
"请输入密码:"
)
for
username
[
a
]
==
name
:
a
+=
1
if
userpassword
[
a
]
==
password
:
print
(
"登陆成功"
)
\ No newline at end of file
画风车.py
View file @
56bff746
"""
"""
...
@@ -7,10 +7,9 @@ import turtle
...
@@ -7,10 +7,9 @@ import turtle
pen
=
turtle
.
Pen
()
pen
=
turtle
.
Pen
()
# 请创造师在下面接着创作
# 请创造师在下面接着创作
d
=
1
d
=
1
while
d
<
500
:
for
d
in
range
(
1
,
500
)
:
pen
.
forward
(
d
)
pen
.
forward
(
d
)
pen
.
right
(
91
)
pen
.
right
(
91
)
d
+=
1
# 隐藏画笔,保存画布
# 隐藏画笔,保存画布
pen
.
hideturtle
()
pen
.
hideturtle
()
...
...
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