Commit b8a28629 by BellCodeEditor

save project

parent 15845d1c
Showing with 5 additions and 6 deletions
...@@ -12,13 +12,11 @@ while True: ...@@ -12,13 +12,11 @@ while True:
if a == username and b == userpassword: if a == username and b == userpassword:
print("登陆成功") print("登陆成功")
break break
elif a !=username and b == userpassword: elif a !=username :
print("username:error") print("username:error")
continue
elif a == username and b != userpassword: elif b != userpassword:
print("userpassword:error") print("userpassword:error")
continue
else:
print("All Error")
# 如果用户输入的账号、密码正确,提示登陆成功 # 如果用户输入的账号、密码正确,提示登陆成功
\ 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