Commit 85201b19 by BellCodeEditor

save project

parent 28ace69f
Showing with 20 additions and 5 deletions
i=3
username="python" username="python"
userpassword="123456" userpassword="123456"
name=input("请输入用户名") while True:
password=input("请输入账号密码") if i>0:
if username==name and userpassword==password: name=input("请输入用户账号")
print("登录成功") password=input("请输入账号密码")
\ No newline at end of file i-=1
if name==username and password==userpassword:
print("登录成功")
print("欢迎来到贝尔编程器")
break
if username!=name:
print("用户名错误")
print("温馨提醒,您还有"+str(i)+"试错机会")
continue
if userpassword!=password:
print("账号密码错误")
print("温馨提醒,您还有"+str(i)+"试错机会")
else:
print("您的账户已冻结,请带着身份证来我司解封")
exit()
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