Commit 9e56efdc by BellCodeEditor

save project

parent b864dcaf
Showing with 19 additions and 8 deletions
i=3
username = "250" username = "250"
userpassword = "cbb" userpassword = "cbb"
while True: while True:
name = input("请输入用户名:")
password = input("请输入密码:") if i>0:
if name == username and password == userpassword: name = input("请输入用户名:")
print("登录成功!") password = input("请输入密码:")
break if name == username and password == userpassword:
if name != username: print("登录成功!")
print("sb!用户名!请重新输入") break
else: if name != username:
print("sb!用户名!请重新输入")
i=i-1
continue
if password != userpassword: if password != userpassword:
print("sb!密码错误!请重新输入") print("sb!密码错误!请重新输入")
i=i-1
else:
while True:
print("sb!")
break
print("欢迎来到cs编程!") print("欢迎来到cs编程!")
\ 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