Commit e371def3 by BellCodeEditor

save project

parent 8c89f804
Showing with 9 additions and 2 deletions
a = "python" a = "python"
b = "123456" b = "123456"
i=3
while True: while True:
name = input("请输入用户名:") name=input('请输入你的用户名')
password = input("请输入密码:") password=input('请输入你的密码')
i-=1
if i>0:
if name == a and password == b: if name == a and password == b:
print("登录成功!") print("登录成功!")
break break
...@@ -12,3 +15,6 @@ while True: ...@@ -12,3 +15,6 @@ while True:
print("密码错") print("密码错")
else: else:
print('欢迎来到贝尔编程') print('欢迎来到贝尔编程')
else:
print('账号以锁定')
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