Commit 2b27c623 by BellCodeEditor

save project

parent c48739cc
Showing with 5 additions and 1 deletions
i = 3
username = "python" username = "python"
userpassword = "123456" userpassword = "123456"
while True: while True:
if i == 0:
print("次数已用尽,无法登录")
exit()
n = input("账号:") n = input("账号:")
p = input("密码:") p = input("密码:")
i=i-1
if n == username and p == userpassword: if n == username and p == userpassword:
print("登陆成功!") print("登陆成功!")
break break
......
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