Commit 5ad8ccbb by BellCodeEditor

save project

parent 904ad1da
Showing with 5 additions and 0 deletions
...@@ -9,5 +9,9 @@ while True: ...@@ -9,5 +9,9 @@ while True:
if name==username and password==userpassword: if name==username and password==userpassword:
print("登录成功") print("登录成功")
break break
elif name!=username:
print("密码错误")
elif name!=userpassword:
print("密码错误")
else: else:
print("账号或密码不正确,登录失败!") 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