Commit 4b4772d8 by BellCodeEditor

save project

parent 94ff20bf
Showing with 7 additions and 1 deletions
...@@ -12,7 +12,12 @@ while True: ...@@ -12,7 +12,12 @@ while True:
if a == username and b == userpassword: if a == username and b == userpassword:
print("登陆成功") print("登陆成功")
break break
elif a !=username and b == userpassword:
print("username:error")
elif a == username and b != userpassword:
print("userpassword:error")
else: else:
print("ERROR") print("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