Commit 557a1614 by BellCodeEditor

save project

parent 1a7de6f9
Showing with 4 additions and 1 deletions
......@@ -5,15 +5,18 @@ while True:
if i>0:
name = input("请输入用户名:")
password = input("请输入密码:")
i-=i
i-=1
if name == username and password == userpassword:
print("登录成功!")
print("温馨提示你还有str(i)")
break
if name!=username:
print("用户名输入错误")
print("温馨提示你还有"+str(i)+"次")
continue
if password!=userpassword:
print("密码输入错误")
print("温馨提示你还有"+str(i)+"次")
else:
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