Commit e5c697e5 by BellCodeEditor

save project

parent 34333a00
Showing with 6 additions and 4 deletions
......@@ -2,7 +2,7 @@ i=3
usename==kk
userpassword==1234567890
while True:
if i>0
if i>0
name=input("请输入用户名")
passwond=input("请输入密码")
i-=1
......@@ -11,11 +11,12 @@ while True:
break
if name!=usename :
print("用户名错误,重新输入")
print("您还有" +str(i)+ "次机会")
continue
if passwond!=userpassword:
print("密码错误,重新输入")
else:
print("您还有"+str(i) +"次机会")
else:
print("您的账户已冻结,请一个小时后再来")
exit()
print("欢迎!")
print("欢迎!" )
\ 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