Commit 0adc85a5 by BellCodeEditor

save project

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