Commit 34a2a2c0 by BellCodeEditor

save project

parent 8dd6fbe6
Showing with 18 additions and 12 deletions
i=3
username = "python" # 保存在服务器数据库中的用户账号(正确的账号) username = "python" # 保存在服务器数据库中的用户账号(正确的账号)
userpassword = "123456" userpassword = "123456"
while True: # 保存在服务器数据库中的用户密码(正确的密码) while True:
a=input("用户") if i>0
b=input("密码") i-=1 # 保存在服务器数据库中的用户密码(正确的密码)
if username==a and userpassword ==b: a=input("用户")
print("登录成功") b=input("密码")
break if username==a and userpassword ==b:
elif username!=a: print("登录成功")
print("用户名错误") break
continue elif username!=a:
elif userpassword!=b: print("用户名错误")
print("密码错误") continue
elif userpassword!=b:
print("密码错误")
else:
continue
else: else:
continue print("您的账号已被封锁,封号24时")
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