Commit 0cad608c by BellCodeEditor

save project

parent 947317cf
Showing with 15 additions and 9 deletions
i=3
username="yinuo" username="yinuo"
usepassword="123456" usepassword="123456"
while True: while True:
name=input("请输入用户名") if i>0:
password=input("请输入密码") name=input("请输入用户名")
if name==username and password==usepassword: password=input("请输入密码")
print("登录成功") i-=1
break if name==username and password==usepassword:
if name!=username: print("登录成功")
print("用户名错误") break
if password!=username: if name!=username:
print("密码错误") print("用户名错误")
if password!=username:
print("密码错误")
else:
print("已锁定")
print("欢迎") print("欢迎")
...@@ -35,3 +40,4 @@ print("欢迎") ...@@ -35,3 +40,4 @@ print("欢迎")
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