Commit 2d6ec08f by BellCodeEditor

save project

parent fc55a248
Showing with 2 additions and 0 deletions
...@@ -12,8 +12,10 @@ while True: # 保存在服务器数据库中的用户密码(正确的密码 ...@@ -12,8 +12,10 @@ while True: # 保存在服务器数据库中的用户密码(正确的密码
break break
elif name!=username: elif name!=username:
print("用户名错误,再输一变") print("用户名错误,再输一变")
print("你还有"+str(i)+"次机会")
else: else:
print("密码错误,再输一变") print("密码错误,再输一变")
print("你还有"+str(i)+"次机会")
else: else:
print("机会用完") print("机会用完")
exit() # 如果用户输入的账号、密码正确,提示登陆成功 exit() # 如果用户输入的账号、密码正确,提示登陆成功
......
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