Commit 16ed7727 by BellCodeEditor

save project

parent 7d29b5f0
Showing with 7 additions and 9 deletions
i = 1
username = "python"
userpassword = "123456"
cishu=0
while True:
if not cishu>5:
if i>3:
name = input("请输入用户名:")
password = input("请输入密码:")
i=i-1
if name == username and password == userpassword:
print("登录成功!")
break
if name != username:
print("用户名错误")
cishu=cishu-1
i=i-1
print(str(cishu))
continue
if password != userpassword:
print("密码错误")
print("密码错误,请重新输入")
cishu=cishu-1
print(str(cishu))
else:
print("煞笔")
exit()
print("欢迎来到贝尔编程!")
i=3
i=i-1
......
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