Commit bedb0828 by BellCodeEditor

save project

parent 84acabca
Showing with 4 additions and 4 deletions
......@@ -7,11 +7,10 @@ while True:
if username==name and userpassword==password:
print("登陆成功 ")
break
print("登陆失败,请重新输入")
if username!=name:
elif username!=name:
print("用户名不存在,请重新输入")
continue
if userpassword!=password:
else:
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