Commit 230bb41a by BellCodeEditor

save project

parent 93b86b81
Showing with 18 additions and 16 deletions
a=0
username = "1"
userpassword = "1"
while True:
a = input("请输入用户名:")
b = input("请输入密码:")
a+=1
if a == username and b == userpassword:
i=3
username = "python"
userpassword = "123456"
i-=1
if i > 0:
while True:
name = input("请输入用户名:")
password = input("请输入密码:")
if name == username and password == userpassword:
break
print("登录成功!")
else:
if b !=userpassword:
if name!=username:
print("用户名和密码错误!请重新输入")
if password!=userpassword:
print("账号错")
if a !=username:
if password!=username:
print("密码错")
if a==3:
print("你的帐号被锁定")
exit()
print("欢迎来到贝尔编程!")
\ No newline at end of file
print("欢迎来到贝尔编程!")
else:
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