Commit 8270c010 by BellCodeEditor

save project

parent b810c294
Showing with 22 additions and 0 deletions
i=3
userName="python"
passWord="123456"
while True:
if i>0:
name=input("请输入账号")
perPassWord=input("请输入密码")
i-=1
print("当前还剩下"+str(i)+"次机会")
if name==userName and perPassWord==passWord:
print("账号密码正确")
break
if name!=userName:
print("账号错误")
continue
if name==userName and perPassWord!=passWord:
print("密码错误")
else:
print("你的账号已被锁定,请带身份证来我公司进行登录")
exit()
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