Commit 230bb41a by BellCodeEditor

save project

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