Commit 9676b9ec by BellCodeEditor

save project

parent 4cdeb4dd
Showing with 2 additions and 1 deletions
sername = "python" username = "python"
userpassword = "123456" userpassword = "123456"
while True: while True:
name = input("请输入用户名:") name = input("请输入用户名:")
...@@ -8,6 +8,7 @@ while True: ...@@ -8,6 +8,7 @@ while True:
break break
if username != name: if username != name:
print("用户名不存在!请重新输入") print("用户名不存在!请重新输入")
continue
if userpassword != password: if userpassword != password:
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