Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
bellcode
/
lesson3-1-1_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
c6912352
authored
Aug 24, 2021
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
b3212478
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
12 deletions
ddd.py
xxx.py
ddd.py
View file @
c6912352
i
=
3
R_name
=
"cjc09"
R_name
=
"cjc09"
R_password
=
"ftoe"
R_password
=
"ftoe"
while
True
:
while
True
:
name
=
input
(
"请输入用户名"
)
if
i
>
0
password
=
input
(
"请输入用户密码"
)
name
=
input
(
"请输入用户名"
)
if
R_name
==
name
and
R_password
==
password
:
password
=
input
(
"请输入用户密码"
)
break
if
R_name
==
name
and
R_password
==
password
:
if
R_name
!=
name
:
break
print
(
"用户名输入错误,请重试"
)
if
R_name
!=
name
:
continue
print
(
"用户名输入错误,请重试"
)
if
R_password
!=
password
:
continue
print
(
"用户密码输入错误,请重试"
)
if
R_password
!=
password
:
continue
print
(
"用户密码输入错误,请重试"
)
print
(
"登陆成功"
)
continue
\ No newline at end of file
print
(
"登陆成功"
)
\ No newline at end of file
xxx.py
0 → 100644
View file @
c6912352
import
turtle
pen
=
turtle
.
Pen
()
distance
=
1
for
i
in
range
(
300
):
pen
.
forward
(
distance
)
pen
.
left
(
91
)
distance
=
distance
+
1
turtle
.
done
hideturtle
()
\ 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