Commit 53e05de6 by BellCodeEditor

save project

parent 683480b9
Showing with 6 additions and 5 deletions
...@@ -4,12 +4,13 @@ userpassword="xingqiu" ...@@ -4,12 +4,13 @@ userpassword="xingqiu"
while True: while True:
name=input("请输入账号:") name=input("请输入账号:")
password=input("请输入密码:") password=input("请输入密码:")
if name == usename and password == usepassword: if name == usename and password == usepassword:
print("登录成功!") print("登录成功!")
break break
if name != usename: elif name != usename:
print("账号错误!") print("用户名不存在,请重新输入!")
continue else:
if password != usepassword: password != usepassword:
print("密码错误!") print("密码输入有误,请重新输入!")
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