Commit 8c2f2e31 by BellCodeEditor

save project

parent 584d0126
Showing with 3 additions and 2 deletions
...@@ -6,10 +6,10 @@ while True: ...@@ -6,10 +6,10 @@ 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 continue
if password !=userpassword: elif password !=userpassword:
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