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
e792d30f
authored
Jun 16, 2024
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
add99ff0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
15 deletions
diy1.py
diy1.py
View file @
e792d30f
username
=
"234567"
# 保存在服务器数据库中的用户账号(正确的账号)
username
=
"234567"
i
=
3
# 保存在服务器数据库中的用户账号(正确的账号)
userpassword
=
"123456"
userpassword
=
"123456"
while
True
:
# 保存在服务器数据库中的用户密码(正确的密码)
while
True
:
name
=
input
(
"啊米诺斯"
)
if
i
>
0
:
# 保存在服务器数据库中的用户密码(正确的密码)
word
=
input
(
"苏卡谱列"
)
name
=
input
(
"啊米诺斯"
)
# 请用input()实现用户输入账号、密码的功能
word
=
input
(
"苏卡谱列"
)
if
username
==
name
and
userpassword
==
word
:
i
=
i
-
1
print
(
"登陆成功!"
)
# 请用input()实现用户输入账号、密码的功能
break
if
username
==
name
and
userpassword
==
word
:
if
name
!=
username
:
print
(
"登陆成功!"
)
print
(
"名字一家三代计划"
)
break
if
word
!=
userpassword
:
if
name
!=
username
:
print
(
"米马粗无,进口发动机开发框架"
)
print
(
"名字一家三代计划"
)
print
(
"欢迎来到我的房间"
)
print
(
"问型体始:尼还哟"
+
str
(
i
)
+
"刺登鹿鸡回"
)
# 如果用户输入的账号、密码正确,提示登陆成功
continue
\ No newline at end of file
if
word
!=
userpassword
:
print
(
"米马粗无,进口发动机开发框架"
)
else
:
print
(
"在下北镇抚司,请跟我去东厂一趟"
)
exit
()
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