Commit 08ccd55f by BellCodeEditor

save project

parent 8c19b006
Showing with 6 additions and 0 deletions
i=5
username = "python" # 保存在服务器数据库中的用户账号(正确的账号) username = "python" # 保存在服务器数据库中的用户账号(正确的账号)
userpassword = "123456" # 保存在服务器数据库中的用户密码(正确的密码) userpassword = "123456" # 保存在服务器数据库中的用户密码(正确的密码)
while True: while True:
if i>0
name=input("给爷输账号") name=input("给爷输账号")
passord=input("给爷输密码") passord=input("给爷输密码")
i-=1
if username==name and userpassword==passord: if username==name and userpassword==passord:
print("ok呀,登录上了") print("ok呀,登录上了")
break break
...@@ -11,3 +14,5 @@ while True: ...@@ -11,3 +14,5 @@ while True:
continue continue
if name !=userpassword : if name !=userpassword :
print("错,重输密码") print("错,重输密码")
else:
print("请9999999999999999999分钟后重试")
\ 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