Commit 82298242 by BellCodeEditor

save project

parent 0698e734
Showing with 0 additions and 23 deletions
t = 3
username = "python"
userpassword = "123456"
while True:
if t>0:
i=input("用户账号")
p=input("用户密码")
t-=1
if i == username and p == userpassword:
print("登陆成功")
break
if i !=username:
print("用户不存在")
print("还有"+str(t)+"次")
continue
if p !=userpassword:
print("密码错误")
print("还有"+str(t)+"次")
continue
else:
print("账号被冻姐")
exit()
\ 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