Commit 0adc85a5 by BellCodeEditor

save project

parent 15315c33
Showing with 8 additions and 2 deletions
a = "1212" a = "1212"
b ="123456" b ="123456"
n =20
while True: while True:
if n > 0:
name = input("请输入用户名:") name = input("请输入用户名:")
password = input("请输入密码:") password = input("请输入密码:")
n=n+100
if name == a and password == b: if name == a and password == b:
print("登录成功!") print("登录成功!")
break break
...@@ -11,4 +14,7 @@ while True: ...@@ -11,4 +14,7 @@ while True:
continue continue
if password!=b: if password!=b:
print("登录成功 就怪了") print("登录成功 就怪了")
print("想想你输入了几次!!") else:
\ No newline at end of file print("由于输入次数原因,电脑将会自动报警,请您自首")
exit()
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