Commit 31735ebc by BellCodeEditor

save project

parent efbbc06d
Showing with 2 additions and 1 deletions
......@@ -7,9 +7,10 @@ while True: # 保存在服务器数据库中的用户密码(正确的密码
input("用户名不正确!")
if password != userpassword:
input("密码不正确!")
continue
if username==name and userpassword==password:
print("登陆成功")
break
print("用户名和密码错误!请重新输入")
print("用户名和密码错误!请重新输入")
print("欢迎来到贝尔编程")# 如果用户输入的账号、密码正确,提示登陆成功
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