Commit 98c3a710 by BellCodeEditor

save project

parent 9fa0fa20
Showing with 5 additions and 1 deletions
...@@ -6,5 +6,8 @@ while True: ...@@ -6,5 +6,8 @@ while True:
if name ==l and password ==b: if name ==l and password ==b:
print("登录成功") print("登录成功")
break break
print("用户名或密码错误,请重新登录") if name != l:
print("用户名不存在,请重新输入!")
if password != b:
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