Commit 9d708ce3 by BellCodeEditor

save project

parent 3aa250a5
Showing with 26 additions and 6 deletions
username = "dream" username = "dream"
userpassword = "340111019013" userpassword = "340111019013"
a=input("请输入账号:") i=3
b=input("请输入密码:") while True:
if a==username and b ==userpassword: if i>0:
a=input("请输入账号:")
b=input("请输入密码:")
if a==username and b ==userpassword:
print("密码正确,登录成功") print("密码正确,登录成功")
else: break
print("密码错误,登录失败") i=i-1
\ No newline at end of file if a!=username:
print("用户名错误,重新输入")
print("温馨提示:你还有"+str(i)+"几次机会")
continue
if b!=userpassword:
print("密码错误,重新输入")
print("温馨提示:你还有"+str(i)+"几次机会")
else:
print("账户已被锁定,请携带相关证件来公司申诉")
exit()
i-=1
print("欢迎来到贝尔编程")
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