Commit 74f42f00 by BellCodeEditor

save project

parent 5e67f797
Showing with 11 additions and 5 deletions
username='123'
userpassword='1156'
a=3
while True:
if a>0:
name=input("请输入用户名:")
password=input("请输入密码:")
if name==username and password==userpassword:
break
break
a-=1
elif name!=username:
print("请重新输入用户名!")
print("请重新输入用户名!")
a-=1
eles :
print("请重新输入密码!")
print("登陆成功!")
\ No newline at end of file
print("请重新输入密码!")
else:
print("你的账户已锁定!")
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