Commit 5363eef3 by BellCodeEditor

save project

parent 32d6ef26
Showing with 4 additions and 1 deletions
...@@ -8,7 +8,8 @@ while True: ...@@ -8,7 +8,8 @@ while True:
if name == username and password == userpassword: if name == username and password == userpassword:
print("登录成功!") print("登录成功!")
break break
i-=1 i-=1
print("温馨提示:你还有"+str(i)+"次机会")
if name != username: if name != username:
print("用户不存在,请重新输入!") print("用户不存在,请重新输入!")
continue continue
...@@ -17,4 +18,5 @@ while True: ...@@ -17,4 +18,5 @@ while True:
print("用户名或密码错误,请重新输入!") print("用户名或密码错误,请重新输入!")
else: else:
print("您的账号以锁") print("您的账号以锁")
exit()
print("欢迎来到贝尔编程") 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