Commit 49a6c9e4 by BellCodeEditor

save project

parent bec3ef92
Showing with 5 additions and 1 deletions
...@@ -5,5 +5,8 @@ while True: ...@@ -5,5 +5,8 @@ while True:
password=input("请输入用户密码") password=input("请输入用户密码")
if R_name==name and R_password==password: if R_name==name and R_password==password:
break break
print("输入错误,请重试") if R_name!=name:
print("用户名输入错误,请重试")
if R_password!=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