Commit 3e67b4f1 by BellCodeEditor

save project

parent a7a57873
Showing with 18 additions and 13 deletions
username = "python" # 保存在服务器数据库中的用户账号(正确的账号)
i=3
username = "123456" # 保存在服务器数据库中的用户账号(正确的账号)
userpassword = "123456"
while True:
srzh=input("请输入账号")
srmm=input("请输入密码")
if srzh==username and srmm==userpassword:
print("账号密码正确")
break
if srzh!=username:
print("账号输入错误,请重新输入")
continue
if srmm!=userpassword:
print("密码输入错误,请重新输入")
print("欢迎来到王者荣耀!")
if i>0:
srzh=input("请输入账号")
srmm=input("请输入密码")
i-=1
if srzh==username and srmm==userpassword:
print("账号密码正确")
break
if srzh!=username:
print("账号输入错误,请重新输入")
continue
if srmm!=userpassword:
print("密码输入错误,请重新输入")
else:
print("你账号已被锁定,请银行")
print("QQ欢迎您!")
\ 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