Commit 9e37afa1 by BellCodeEditor

save project

parent e8dfdcac
Showing with 15 additions and 11 deletions
i = 1
username = "1" username = "1"
userpassword = "1" userpassword = "1"
while True: while True:
name = input("请输入用户名:") if i > 0:
password = input("请输入密码:") i-=1
if name == username and password == userpassword: name = input("请输入用户名:")
print("登录成功!") password = input("请输入密码:")
break if name == username and password == userpassword:
if username != name: print("登录成功!")
print("你马,用户名都不记的您配吗?重输") break
continue if username != name or userpassword != password:
if userpassword != password: print("你马,用户名和密码都不记的您配吗?重输")
print("你马,密码都不记的您配吗?重输") continue
continue else:
print("你马,用户名和密码都输不对,滚!")
exit()
print("欢迎来到对抗路!") print("欢迎来到对抗路!")
\ 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