Commit 97aa14bc by BellCodeEditor

save project

parent 78303a72
Showing with 2 additions and 3 deletions
...@@ -7,10 +7,9 @@ while True: ...@@ -7,10 +7,9 @@ while True:
if username == name and userpassword == password: if username == name and userpassword == password:
print('登录成功') print('登录成功')
break break
if username != name: elif username != name:
print('请重新输入用户名') print('请重新输入用户名')
continue else:
if userpassword != password:
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