Commit b3fb909b by BellCodeEditor

auto save

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