Commit 2b2737f8 by BellCodeEditor

save project

parent 6ff617cb
Showing with 2 additions and 4 deletions
...@@ -7,12 +7,10 @@ while True: ...@@ -7,12 +7,10 @@ while True:
if name == username and password == userpassword: if name == username and password == userpassword:
print("正确") print("正确")
break break
if name !=username: if name !=username and password=userpassword:
print("错误,用户不存在") print("错误,用户不存在")
continue if password !=userpassword and name=username :
if password !=userpassword :
print("错误,密码有误") print("错误,密码有误")
continue
print("欢迎") print("欢迎")
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