Commit acad8ec0 by BellCodeEditor

save project

parent d36f7bbd
Showing with 16 additions and 9 deletions
i=3
username = 'python' username = 'python'
userpassword = "123456" userpassword = "123456"
while True: while True:
a=input('输入账号:') if i>0:
if a != username: i-=1
print("用户名不正确:") a=input('输入账号:')
else: if a != username:
b=input('输入密码:') print("用户名不正确:")
if b==userpassword:
print("登陆成功")
break
else: else:
print('密码错误') b=input('输入密码:')
if b==userpassword:
print("登陆成功")
break
else:
print('密码错误')
else:
print('locked!')
exit()
print("欢迎来到贝尔编程!:") 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