Commit f0e4120f by BellCodeEditor

save project

parent 1bf4da97
Showing with 29 additions and 10 deletions
username = "python"
userpassword = "123456"
while True:
name = input("请输入用户名:")
password = input("请输入密码:")
if name == username and password == userpassword:
print("登录成功!")
print("用户名和密码错误!请重新输入")
print("欢迎来到贝尔编程!")
\ No newline at end of file
a ='python'
b ='12345'
e =0
while e < 3:
c = input("请输入用户名:")
d = input("请输入密码:")
if a == c and b == d:
print("登录成功")
e +=3
elif a != c and b == d:
print("用户名错误")
e +=1
elif a == c and b != d:
print("密码错误")
e +=1
else:
print("该账号不存在")
e +=1
print("账号封锁中")
print("账号已封锁")
#print("自爆准备")
#print("程序删除中")
#print("删除完毕")
#print(3)
#print(2)
#print(1)
#print(0)
#print("Boom!!!")
\ 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