Commit 384b2e65 by BellCodeEditor

save project

parent b4e1fc0a
Showing with 2 additions and 3 deletions
......@@ -5,18 +5,17 @@ while True:
if i>0:
i-=1
name = input("请输入用户名:")
if name != username:
print("该用户不存在!")
continue
password = input("请输入密码:")
if name == username and password == userpassword:
print("登录成功!")
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