Commit d77eab9e by BellCodeEditor

save project

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