Commit 176cfbce by BellCodeEditor

save project

parent df316dba
Showing with 7 additions and 1 deletions
i=3
while True: while True:
if i>0:
a = 'edu1119887003' a = 'edu1119887003'
b = '123456' b = '123456'
name = input('请输入用户名:') name = input('请输入用户名:')
...@@ -6,10 +8,13 @@ while True: ...@@ -6,10 +8,13 @@ while True:
if (name == a and password == b): if (name == a and password == b):
print('登录成功') print('登录成功')
break break
i-=1
if name!=a: if name!=a:
print('用户名错误') print('用户名错误')
continue continue
if password!=b: if password!=b:
print('密码错误') print('密码错误')
else:
print('一小时后再来')
exit()
print('欢迎来到黑客网站') print('欢迎来到黑客网站')
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment