Commit 7a354197 by BellCodeEditor

save project

parent 6c26ccec
Showing with 2 additions and 2 deletions
...@@ -5,12 +5,12 @@ while True: ...@@ -5,12 +5,12 @@ while True:
if i>0: if i>0:
name=input("请输入用户名:") name=input("请输入用户名:")
password=input("请输入密码:") password=input("请输入密码:")
i-=1
if name==username and password==userpassword: if name==username and password==userpassword:
break break
i-=1
elif name!=username: elif name!=username:
print("请重新输入用户名!") print("请重新输入用户名!")
i-=1
else: else:
print("请重新输入密码!") print("请重新输入密码!")
else: else:
......
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