Commit 74c41f23 by BellCodeEditor

save project

parent 5cff4b85
Showing with 9 additions and 3 deletions
...@@ -6,5 +6,12 @@ while True: ...@@ -6,5 +6,12 @@ while True:
if name == username and password == userpassword: if name == username and password == userpassword:
print("登录成功!") print("登录成功!")
break break
if name != username
print(用户名)
\ No newline at end of file elif name != username and password != userpassword:
print("用户名和密码用户名")
elif name != username:
print("用户名错误!请重新输入")
continue
elif password != userpassword:
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