Commit 53e05de6 by BellCodeEditor

save project

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