Commit 575b23a4 by BellCodeEditor

save project

parent 27847270
Showing with 5 additions and 2 deletions
...@@ -3,8 +3,10 @@ userpassword = "123456" ...@@ -3,8 +3,10 @@ userpassword = "123456"
while True: while True:
n = input() n = input()
p = input() p = input()
if n != username or p != userpassword: if n != username:
print("用户名和密码错误!请重新输入") print("用户名错误!请重新输入")
if p != userpassword:
print("密码错误!请重新输入")
if n == username and p == userpassword: if n == username and p == userpassword:
print("Hi") print("Hi")
break break
\ 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