Commit b8ae8429 by BellCodeEditor

save project

parent b810c294
Showing with 31 additions and 0 deletions
username = "doctor"
userpassword = "prts"
i=0
box=0
while True:
if box==0:
name = input("请输入用户名:")
password = input("请输入密码:")
if name == username and password == userpassword:
print("登录成功!")
break
if name!=username:
print("是故意的")
i+=1
if i==3:
print("妈妈生的")
exit()
print("还有"+str(3-i)+"次试错机会")
continue
else:
box=name
if password!=userpassword:
print("你干嘛哈哈哎哟")
i+=1
if i==3:
print("妈妈生的")
exit()
print("还有"+str(3-i)+"次试错机会")
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