Commit 06672b8c by BellCodeEditor

save project

parent 34c939db
Showing with 16 additions and 10 deletions
i=3
username = "1"
userpassward = "2"
while True:
name=input("请输入账号:")
passward=input("请输入密码:")
if name == username and passward == userpassward:
print("登陆成功")
break
elif name != username:
print("账号错误")
else:
print("密码错误")
print("错误")
if i>0:
name=input("请输入账号:")
passward=input("请输入密码:")
i-=1
if name == username and passward == userpassward:
print("登陆成功")
break
if name != username:
print("账号错误")
if passward != userpassward:
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