Commit 63e6a56c by BellCodeEditor

save project

parent 3cf077a5
Showing with 3 additions and 1 deletions
...@@ -11,11 +11,13 @@ while True: ...@@ -11,11 +11,13 @@ while True:
if a==c and b==d and w==s: if a==c and b==d and w==s:
print("登录成功!") print("登录成功!")
break break
if a!=c if a!=c:
print("用户名错误!请重新输入") print("用户名错误!请重新输入")
print("温馨提示:你还有"+str(i)+"次登录机会")
continue continue
if a==c and b!=d: if a==c and b!=d:
print("密码错误!请重新输入") print("密码错误!请重新输入")
print("温馨提示:你还有"+str(i)+"次登录机会")
if a!=c and b!=d and w==s: if a!=c and b!=d and w==s:
print("用户名和密码错误!请重新输入") print("用户名和密码错误!请重新输入")
if a==c and b==d and w!=s: if a==c and b==d and w!=s:
......
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