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