Commit fadde91c by BellCodeEditor

auto save

parent f5f69f87
Showing with 4 additions and 0 deletions
...@@ -8,6 +8,10 @@ while True: ...@@ -8,6 +8,10 @@ while True:
print("登录成功") print("登录成功")
# 如果用户输入的账号、密码正确,提示登陆成功 # 如果用户输入的账号、密码正确,提示登陆成功
break break
elif name != username:
print("用户名不存在,请重新输入")
else:
print("密码输入错误,请重新输入")
if name != username: if name != username:
print("用户名输入错误,请重新输入") print("用户名输入错误,请重新输入")
continue continue
......
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