Commit 7c2f50bc by BellCodeEditor

save project

parent 09b5ab4d
Showing with 6 additions and 2 deletions
...@@ -6,4 +6,8 @@ while True: ...@@ -6,4 +6,8 @@ while True:
if username==name and userpassword==password: if username==name and userpassword==password:
print("登陆成功") print("登陆成功")
break break
print("用户名和密码错误请重新输入") if username != name:
\ No newline at end of file print("用户名不存在")
continue
if userpassword != password:
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