Commit 53050878 by BellCodeEditor

save project

parent 8bb371bc
Showing with 28 additions and 0 deletions
f_z="adh"
f_m="12345"
i=3
while True:
if i>=0:
print("你还有",i,"次登录的次数")
i=i-1
d_z=input("请输入登录的账号:")
d_m=input("请输入登录的密码:")
if d_z==f_z and d_m==f_m:
print("登录成功~")
break
elif f_z!=d_z:
print("账号不正确,请重新输入")
continue
elif f_m!=d_m:
print("密码不正确,请重新输入")
continue
else:
exit()
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