Commit 3e67b4f1 by BellCodeEditor

save project

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