Commit 32eb28ac by BellCodeEditor

save project

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