Commit 046d555f by BellCodeEditor

save project

parent a3bb37a3
Showing with 4 additions and 6 deletions
...@@ -8,16 +8,14 @@ while True: ...@@ -8,16 +8,14 @@ while True:
# 如果用户输入的账号、密码正确,提示登陆成功 # 如果用户输入的账号、密码正确,提示登陆成功
if username == username1 and userpassword == userpassword1:
print("输入正确")
break
else:
if username != username1: if username != username1:
print("用户名错误") print("用户名错误")
continue
elif userpassword != userpassword1: elif userpassword != userpassword1:
print("密码错误") print("密码错误")
elif username == username1 and userpassword == userpassword1:
print("输入正确")
break
......
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