Commit 7b6cc17b by BellCodeEditor

save project

parent 5d6e0e19
Showing with 13 additions and 1 deletions
i=3
zh="bangxuan" zh="bangxuan"
mm="123456" mm="123456"
while True: while True:
if i>0:
zh1=input("请输入账号") zh1=input("请输入账号")
mm1=input("请输入密码") mm1=input("请输入密码")
i-=1
if zh==zh1 and mm==mm1: if zh==zh1 and mm==mm1:
print("登录成功!") print("登录成功!")
break break
print("账号密码输入错误!") if zh!=zh1:
print("账号输入错误!")
print("温馨提示:你还有"+str(i)+"次机会")
continue
if mm!=mm1:
print("密码输入错误!")
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