Commit b3fb909b by BellCodeEditor

auto save

parent c5692b9d
Showing with 10 additions and 1 deletions
i=3
username = "123" # 保存在服务器数据库中的用户账号(正确的账号) username = "123" # 保存在服务器数据库中的用户账号(正确的账号)
userpassword = "123" userpassword = "123"
while True: while True:
if i>0:
name=input("请输入你的账号") name=input("请输入你的账号")
password=input("请输入你的密码") password=input("请输入你的密码")
i-=1
if name==username and password==userpassword: if name==username and password==userpassword:
print("登陆成功") print("登陆成功")
break break
elif name!=username: elif name!=username:
print("请重新输入你的账号") print("请重新输入你的账号")
else : elif :
print("请重新输入你的密码") print("请重新输入你的密码")
else:
print("您还有"+i+"次机会")
else:
print("账户已被锁定")
exit()
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