Commit 4960dd11 by BellCodeEditor

save project

parent 508712ae
Showing with 5 additions and 0 deletions
...@@ -8,5 +8,9 @@ while True: ...@@ -8,5 +8,9 @@ while True:
print("登陆成功 ") print("登陆成功 ")
break break
print("登陆失败,请重新输入") print("登陆失败,请重新输入")
if username!=name:
print("用户名不存在,请重新输入")
if userpassword!=password:
print("密码不正确,请重新输入")
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