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
cc2b1c85
authored
Oct 15, 2023
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
4e2e75aa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
5 deletions
diy1.py
diy1.py
View file @
cc2b1c85
username
=
"zzt"
# zzt
username
=
"xx探险队"
# xx探险队
userpassword
=
"呜呜呜呜呜呜呜"
# 7个呜
userpassword
=
"xx小镇午夜游乐园末班车"
#xx小镇午夜游乐园末班车
# 请用input()实现用户输入账号、密码的功能
name
=
input
(
"输入账号:"
)
name
=
input
(
"输入账号:"
)
password
=
input
(
"输入密码:"
)
password
=
input
(
"输入密码:"
)
if
username
==
name
and
userpassword
==
password
:
if
username
==
name
and
userpassword
==
password
:
print
(
"登陆成功"
)
print
(
"登陆成功"
)
# 如果用户输入的账号、密码正确,提示登陆成功
if
username
!=
name
:
\ No newline at end of file
print
(
"账号错误,登陆失败"
)
print
(
"此账号已被锁定,请带领探险证件来午夜游乐园售票处解锁账号。"
)
exit
()
if
userpassword
!=
password
:
exit
()
else
:
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