Commit 7b6cc17b by BellCodeEditor

save project

parent 5d6e0e19
Showing with 18 additions and 6 deletions
i=3
zh="bangxuan" zh="bangxuan"
mm="123456" mm="123456"
while True: while True:
zh1=input("请输入账号") if i>0:
mm1=input("请输入密码") zh1=input("请输入账号")
if zh==zh1 and mm==mm1: mm1=input("请输入密码")
print("登录成功!") i-=1
break if zh==zh1 and mm==mm1:
print("账号密码输入错误!") print("登录成功!")
break
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