Commit ee286421 by BellCodeEditor

save project

parent 80c4fc5b
Showing with 7 additions and 2 deletions
......@@ -5,4 +5,9 @@ while True:
password =input("密码")
if username ==name and userpassword ==password:
print("登陆成功")#
break #如果用户输入的账号、密码正确,提示登陆成功
\ No newline at end of file
break
if username != name:
print("用户名不正确")
if password !=userpassword:
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