Commit 230bb41a by BellCodeEditor

save project

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