Commit 86a56440 by BellCodeEditor

save project

parent 6760a877
Showing with 20 additions and 11 deletions
username = "小暗蜂" username = "小暗蜂"
userpassword = "eses1470" userpassword = "eses1470"
i=5 i=3
while i>0: while True:
name=input("名?") if i>0:
password=input("密?") name=input("名?")
if name != username: password=input("密?")
print("用户名错误!请重新输入") if name != username:
if password != userpassword: i=i-1
print("密码错误!请重新输入") print("用户名错误!请重新输入")
if name == username and password == userpassword: print(str(i))
print("登录成功!") if password != userpassword:
break i=i-1
print("密码错误!请重新输入")
print(str(i))
if name == username and password == userpassword:
print("登录成功!")
break
else:
print("滚!!!!!!!!!!!!!!!!!!!!!!!!!!!!")
exit()
print("SB") print("SB")
\ 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