Commit 8f43f5af by BellCodeEditor

save project

parent 07148ac3
Showing with 18 additions and 12 deletions
username = "李索南" # 保存在服务器数据库中的用户账号(正确的账号) username = "李索南" # 保存在服务器数据库中的用户账号(正确的账号)
userpassword = "519823357913315041616" # 保存在服务器数据库中的用户密码(正确的密码) userpassword = "519823357913315041616" # 保存在服务器数据库中的用户密码(正确的密码)
i=3
while True: while True:
name=input("请输入姓名:") if i>0:
word=input("请输入密码:") name=input("请输入姓名:")
if username==name and userpassword==word: word=input("请输入密码:")
print("登陆成功") i=i-1
break if username==name and userpassword==word:
if name!=username: print("登陆成功")
print("用户名不存在") break
continue if name!=username:
if word!=userpassword: print("用户名不存在")
print("用户密码不存在") continue
\ No newline at end of file if word!=userpassword:
print("用户密码不存在")
else:
print("你的账号已被锁")
exit()
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