Commit 046d555f by BellCodeEditor

save project

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