Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
lesson4_1
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
71fb06fc
authored
Mar 17, 2023
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
d687596a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
diy1.py
diy1.py
View file @
71fb06fc
...
@@ -2,13 +2,13 @@ username = "s'b"
...
@@ -2,13 +2,13 @@ username = "s'b"
userpassword
=
"112233"
userpassword
=
"112233"
while
True
:
while
True
:
a
=
input
(
"输入名字"
)
a
=
input
(
"输入名字"
)
if
a
!=
username
:
print
(
"你没注册名吧?gun!"
)
continue
b
=
input
(
"输入暗号"
)
b
=
input
(
"输入暗号"
)
if
a
==
username
and
b
==
userpassword
:
if
a
==
username
and
b
==
userpassword
:
print
(
"恭喜你加入我们丐帮"
)
print
(
"恭喜你加入我们丐帮"
)
break
break
if
a
!=
username
:
print
(
"你没注册名吧?gun!"
)
continue
if
b
!=
userpassword
:
if
b
!=
userpassword
:
print
(
"我们的暗号你居然不知道!gun!"
)
print
(
"我们的暗号你居然不知道!gun!"
)
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