Commit bdfb0ac3 by BellCodeEditor

save project

parent 0b0ea4da
Showing with 7 additions and 0 deletions
i=3
username = "python"
userpassword = "123456"
while True:
if i>0:
x=input("请输入账号:")
y=input("请输入密码:")
i-=1
if x==username and y==userpassword:
print("密码正确")
break
......@@ -11,5 +14,8 @@ while True:
continue
if y != userpassword:
input("密码错误")
else:
print("你的账户已被锁定,请等待解锁账号")
exit()
\ 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