Commit 68788db7 by BellCodeEditor

save project

parent 08633365
Showing with 5 additions and 2 deletions
...@@ -5,13 +5,16 @@ while True: ...@@ -5,13 +5,16 @@ while True:
if i>0: if i>0:
name = input("请输入用户名:") name = input("请输入用户名:")
password = input("请输入密码:") password = input("请输入密码:")
i=i-1
if name == username and password == userpassword: if name == username and password == userpassword:
print("登录成功!") print("登录成功!")
break break
elif name!=username: if name!=username:
input("用户名输入错误,请输入用户名:") input("用户名输入错误,请输入用户名:")
else: continue
if password!=userpassword:
input("密码输入错误,请输入密码:") input("密码输入错误,请输入密码:")
print("您还有srt(i)次机会")
else: else:
print("您的账号已被锁定!!!!!!") print("您的账号已被锁定!!!!!!")
exit() exit()
......
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