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
e27bdc76
authored
Oct 24, 2020
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
dfaa589e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
5 deletions
ggbh.py
ggbh.py
View file @
e27bdc76
username
=
'HK'
userpassword
=
'54188'
name
=
input
(
"给俺输入你的用户名,俺要盗取你的信息!:"
)
password
=
input
(
"快输入你的密码,我等不及了!快!:"
)
if
name
==
username
and
password
==
userpassword
:
print
(
"干得漂亮!现在我可以盗取你的信息了!哈哈!"
)
\ No newline at end of file
while
True
:
name
=
input
(
"给俺输入你的用户名,俺要盗取你的信息!:"
)
password
=
input
(
"快输入你的密码,我等不及了!快!:"
)
if
name
==
username
and
password
==
userpassword
:
print
(
"干得漂亮!现在我可以盗取你的信息了!哈哈!"
)
break
if
name
!=
username
:
print
(
"说实话,你输错用户名干什么?还让不让我盗号了?"
)
if
password
!=
userpassword
:
print
(
"你有病啊!干嘛输错密码,还让不让我盗号了?"
)
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