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
3da16e71
authored
Aug 27, 2023
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
3a8a6422
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
11 deletions
diy1.py
n
diy1.py
View file @
3da16e71
GGbood
=
4
i
=
3
username
=
"
GGbood
"
# 保存在服务器数据库中的用户账号(正确的账号)
username
=
"
emo大队大队长
"
# 保存在服务器数据库中的用户账号(正确的账号)
userpassword
=
"
死猪
"
# 保存在服务器数据库中的用户密码(正确的密码)
userpassword
=
"
emo236
"
# 保存在服务器数据库中的用户密码(正确的密码)
while
True
:
# 请用input()实现用户输入账号、密码的功能:
while
True
:
# 请用input()实现用户输入账号、密码的功能:
if
GGbood
>
0
:
if
i
>
0
:
name
=
input
(
"输入账号"
)
name
=
input
(
"输入账号"
)
i
-=
1
if
username
!=
name
:
print
(
"账号错误,你个傻逼,连账号都记不住 emo大队大队长"
)
print
(
'剩余'
+
str
(
i
)
+
'次'
)
continue
password
=
input
(
"输入密码"
)
password
=
input
(
"输入密码"
)
GGbood
-=
1
if
userpassword
!=
password
:
print
(
"密码错误,你个傻逼,连密码都记不住 ;emo236"
)
# 如果用户输入的账号、密码正确,提示登陆成功
# 如果用户输入的账号、密码正确,提示登陆成功
if
name
==
username
and
password
==
userpassword
:
if
name
==
username
and
password
==
userpassword
:
print
(
'登陆成功'
)
print
(
'登陆成功'
)
break
break
if
username
!=
name
:
print
(
"账号错误"
)
if
userpassword
!=
password
:
print
(
"密码错误"
)
else
:
else
:
print
(
"输入次数过多,送你封号亿年大礼包"
)
print
(
'大傻逼账号密码都跟你说了还不对封号十年!!!'
)
exit
()
exit
()
print
(
'欢迎'
)
print
(
'欢迎
来到贝尔编辑器,大傻逼!!!
'
)
\ No newline at end of file
n
0 → 100644
View file @
3da16e71
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