Commit e371def3 by BellCodeEditor

save project

parent 8c89f804
Showing with 17 additions and 11 deletions
a = "python" a = "python"
b = "123456" b = "123456"
i=3
while True: while True:
name = input("请输入用户名:") name=input('请输入你的用户名')
password = input("请输入密码:") password=input('请输入你的密码')
if name == a and password == b: i-=1
print("登录成功!") if i>0:
break if name == a and password == b:
if a!=name: print("登录成功!")
print("用户名错") break
elif b!=password: if a!=name:
print("密码错") print("用户名错")
elif b!=password:
print("密码错")
else:
print('欢迎来到贝尔编程')
else: else:
print('欢迎来到贝尔编程') print('账号以锁定')
\ No newline at end of file exit()
\ 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