Commit f5f752e8 by BellCodeEditor

save project

parent 089e104c
Showing with 7 additions and 0 deletions
user='python' user='python'
password='12345' password='12345'
i=3
while True: while True:
if i>0:
a=input("输入用户名:") a=input("输入用户名:")
b=input("输入密码:") b=input("输入密码:")
i=i-1
if user==a and password==b: if user==a and password==b:
print("登录成功!") print("登录成功!")
break break
...@@ -12,3 +15,6 @@ while True: ...@@ -12,3 +15,6 @@ while True:
if password!=b: if password!=b:
print("密码错误!") print("密码错误!")
continue continue
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