Commit cd7b5243 by BellCodeEditor

save project

parent e1ceb11b
Showing with 19 additions and 12 deletions
username = "python" username = "python"
userpassword = "123456" userpassword = "123456"
for i in range(3): i=3
name = input("请输入用户名:") while True:
password = input("请输入密码:") if i>0:
if name == username and password == userpassword: name = input("请输入用户名:")
print("登录成功!") password = input("请输入密码:")
print("欢迎来到王者荣耀,请注意,敌方还有三秒到达战场,全军出击!") i=i-1
break if name == username and password == userpassword:
else: print("登录成功!")
if name != username : print("欢迎来到王者荣耀,请注意,敌方还有三秒到达战场,全军出击!")
print("用户名错误!请重新输入") break
if password != userpassword: else:
print("密码错误!请重新输入") if name != username :
print("用户名错误!请重新输入")
if password != userpassword:
print("密码错误!请重新输入")
else:
print("因有人举报,您的帐号已被封号20年!")
break
\ No newline at end of file
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