Commit acc9d127 by BellCodeEditor

save project

parent 3cac18c1
Showing with 5 additions and 6 deletions
...@@ -3,11 +3,11 @@ userpassword = "1" ...@@ -3,11 +3,11 @@ userpassword = "1"
while True: while True:
name = input("请输入用户名:") name = input("请输入用户名:")
password = input("请输入密码:") password = input("请输入密码:")
if name != username: if name != username and passwork != userpasswork:
continue print("登录成功")
break
elif name != username:
print("账户输入错误!") print("账户输入错误!")
if passwork != userpassword: else:
continue
print("密码输入错误!") print("密码输入错误!")
break
print("欢迎") print("欢迎")
\ No newline at end of file
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