Commit 0292d2e0 by BellCodeEditor

save project

parent 8b861918
Showing with 6 additions and 2 deletions
...@@ -12,11 +12,14 @@ while True: # 保存在服务器数据库中的用户密码(正确的密码 ...@@ -12,11 +12,14 @@ while True: # 保存在服务器数据库中的用户密码(正确的密码
break break
if name!=username: if name!=username:
print("请重新输入账号") print("请重新输入账号")
print("还有"+str(i)+"次机会")
continue continue
if password!=userpassword: if password!=userpassword:
print("请重新输入密码") print("请重新输入密码")
print("用户名称密码输入错误!请重新输入") print("还有"+str(i)+"次机会")
else:
print("账号锁定")
exit 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