Commit aa23d05c by BellCodeEditor

save project

parent 4fbda071
Showing with 7 additions and 2 deletions
...@@ -8,6 +8,10 @@ while True: ...@@ -8,6 +8,10 @@ while True:
print("登录成功") print("登录成功")
time.sleep(1) time.sleep(1)
break break
else: elif name!=username and userpassword!=password:
print("登陆失败") print("用户名和密码错误!")
elif name!=username:
print("用户名错误!")
elif userpassword!=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