Commit 683480b9 by BellCodeEditor

save project

parent 49846821
Showing with 1 additions and 1 deletions
...@@ -4,12 +4,12 @@ userpassword="xingqiu" ...@@ -4,12 +4,12 @@ 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: if name != usename:
print("账号错误!") print("账号错误!")
continue
if password != usepassword: if 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