Commit 34a2a2c0 by BellCodeEditor

save project

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