Commit afbd1ff7 by BellCodeEditor

save project

parent b810c294
Showing with 25 additions and 0 deletions
username = "1"
userpassword = "2"
i=3
while True:
if i>0
name = input("请输入用户名:")
password = input("请输入密码:")
if name == username and password == userpassword:
i-=1
print("登录成功!")
break
if name != username:
print("密码错误!")
continne
if password != userpassword:
print("用户名错误!")
i-=1
continne
if i==0:
print("错了,账号冻了,拿上身份证来我死解封")
exid()
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