Commit 6326bd9c by BellCodeEditor

save project

parent a8651a55
Showing with 8 additions and 5 deletions
...@@ -7,13 +7,15 @@ while True: # 保存在服务器数据库中的用户密码(正确的密码 ...@@ -7,13 +7,15 @@ while True: # 保存在服务器数据库中的用户密码(正确的密码
if name == username and password==userpassword: if name == username and password==userpassword:
print("密码正确") print("密码正确")
break break
if name!=username: elif name!=username:
print("用户名错误") print("用户名错误")
if password!=userpassword: break
print("密码错误")
else:
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