Commit 0105a3c8 by BellCodeEditor

save project

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