Commit 0023cc5f by BellCodeEditor

save project

parent 4d782b14
Showing with 6 additions and 1 deletions
username = "python"
userpassword = "123456"
while True:
i = 3
while i > 0:
name = input("请输入用户名:")
password = input("请输入密码:")
i-=1
if name == username :
if password == userpassword:
print("登录成功!")
......@@ -11,3 +13,6 @@ while True:
print("密码错误!")
else:
print("用户名不存在!")
if i == 0:
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