Commit 0665a751 by BellCodeEditor

save project

parent 2f8963af
Showing with 10 additions and 2 deletions
f = "j" i = 3
y = "123" f=("j")
y=("123")
while True: while True:
if i>0:
f1 = input("请输入账号") f1 = input("请输入账号")
y1 = input("请输入密码") y1 = input("请输入密码")
i-=1
if f==f1 and y==y1: if f==f1 and y==y1:
print("登陆成功") print("登陆成功")
break break
if f!=f1: if f!=f1:
print("账号错误") print("账号错误")
pr(iint( "你还有"+str)+"次")
continue continue
if y!=y1: if y!=y1:
print("密码错误") print("密码错误")
print("你还有"+str(i)+"次")
else:
print("没次数了!")
exit()
input("欢迎") input("欢迎")
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