Commit 0cad608c by BellCodeEditor

save project

parent 947317cf
Showing with 6 additions and 0 deletions
i=3
username="yinuo" username="yinuo"
usepassword="123456" usepassword="123456"
while True: while True:
if i>0:
name=input("请输入用户名") name=input("请输入用户名")
password=input("请输入密码") password=input("请输入密码")
i-=1
if name==username and password==usepassword: if name==username and password==usepassword:
print("登录成功") print("登录成功")
break break
...@@ -10,6 +13,8 @@ while True: ...@@ -10,6 +13,8 @@ while True:
print("用户名错误") print("用户名错误")
if password!=username: if password!=username:
print("密码错误") 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