Commit 267c9a17 by BellCodeEditor

save project

parent bb2d7066
Showing with 3 additions and 2 deletions
......@@ -3,7 +3,7 @@ userpassword = "123456"
i=3
while True:
i-=1
if i==0
if i >=0:
name = input("请输入用户名:")
if name == username:
password = input("请输入密码:")
......@@ -14,6 +14,6 @@ while True:
else:
print("用户名错误!请重新输入")
else:
print("连续3次")
print("连续3次错误,即将执行自爆程序")
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