Commit 59411068 by BellCodeEditor

save project

parent 7d268c13
Showing with 10 additions and 10 deletions
...@@ -3,19 +3,19 @@ usename==kk ...@@ -3,19 +3,19 @@ usename==kk
userpassword==1234567890 userpassword==1234567890
while True: while True:
if i>0 if i>0
name=input("请输入用户名") name=input("请输入用户名")
passwond=input("请输入密码") passwond=input("请输入密码")
if name==usename and passwond==userpassword: : i-=1
print("登录成功") if name==usename and passwond==userpassword: :
break print("登录成功")
if name!=usename : break
print("用户名错误,重新输入") if name!=usename :
continue print("用户名错误,重新输入")
if passwond!=userpassword: continue
print("密码错误,重新输入") if passwond!=userpassword:
print("密码错误,重新输入")
else: else:
print("您的账户已冻结,请一个小时后再来") print("您的账户已冻结,请一个小时后再来")
exit() exit()
print("欢迎!") 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