Commit d77eab9e by BellCodeEditor

save project

parent 488ebfc0
Showing with 17 additions and 12 deletions
a = "python" # 保存在服务器数据库中的用户账号(正确的账号)
s = "123456"
i=3
while True:
# 保存在服务器数据库中的用户密码(正确的密码)
name=input("请输入账号:")
pwe=input("请输入密码:")
if name==a and s==pwe:
print("登陆成功!")
break
else:
print("失败")
if a!=name:
print("账号错误")
if i>0:
# 保存在服务器数据库中的用户密码(正确的密码)
name=input("请输入账号:")
pwe=input("请输入密码:")
if name==a and s==pwe:
print("登陆成功!")
break
else:
print("密码错误")
print("失败")
i=i-1
if a!=name:
print("账号错误")
else:
print("密码错误")
else:
print("没次数了")
exit()
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