Commit 58dd0a7f by BellCodeEditor

save project

parent f30688ee
Showing with 12 additions and 11 deletions
......@@ -3,17 +3,18 @@ username = "python"
userpassword = "123456"
while True:
if i>0:
name = input("请输入用户名:")
password = input("请输入密码:")
i-=1:
if name == username and password == userpassword:
print("登录成功!")
break
if name != username:
print("用户名错误!")
continue
if password != userpassword
print("密码错误!")
name = input("请输入用户名:")
password = input("请输入密码:")
i-=1
print("2次")
if name == username and password == userpassword:
print("登录成功!")
break
if name != username:
print("用户名错误!")
continue
if password != userpassword
print("密码错误!")
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