Commit 30fa799b by BellCodeEditor

auto save

parent 7f1db528
Showing with 8 additions and 21 deletions
username = "python" # 保存在服务器数据库中的用户账号(正确的账号) a=0
userpassword = "123456" # 保存在服务器数据库中的用户密码(正确的密码) for i in range(1,101):
i=3 for j in range(1,51):
while True: for x in range(1,21):
if i>0: if i+2*j+5*x==100:
name=input("请输入用户账号") a=a+1
password=input("请输入用户密码") print(a)
i-=1 \ No newline at end of file
if name==username and password==userpassword:
print("登录成功")
break
if name != username:
print("用户名错误")
continue
if password != 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