Commit 3e67b4f1 by BellCodeEditor

save project

parent a7a57873
Showing with 8 additions and 3 deletions
username = "python" # 保存在服务器数据库中的用户账号(正确的账号) i=3
username = "123456" # 保存在服务器数据库中的用户账号(正确的账号)
userpassword = "123456" userpassword = "123456"
while True: while True:
if i>0:
srzh=input("请输入账号") srzh=input("请输入账号")
srmm=input("请输入密码") srmm=input("请输入密码")
i-=1
if srzh==username and srmm==userpassword: if srzh==username and srmm==userpassword:
print("账号密码正确") print("账号密码正确")
break break
...@@ -11,5 +14,6 @@ while True: ...@@ -11,5 +14,6 @@ while True:
continue continue
if srmm!=userpassword: if srmm!=userpassword:
print("密码输入错误,请重新输入") print("密码输入错误,请重新输入")
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