Commit 8f43f5af by BellCodeEditor

save project

parent 07148ac3
Showing with 8 additions and 1 deletions
username = "李索南" # 保存在服务器数据库中的用户账号(正确的账号)
userpassword = "519823357913315041616" # 保存在服务器数据库中的用户密码(正确的密码)
i=3
while True:
if i>0:
name=input("请输入姓名:")
word=input("请输入密码:")
i=i-1
if username==name and userpassword==word:
print("登陆成功")
break
......@@ -12,3 +14,7 @@ while True:
continue
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