Commit 5ebe49cb by BellCodeEditor

save project

parent 4c0f3395
Showing with 2 additions and 0 deletions
i = 3
username = "python" # 保存在服务器数据库中的用户账号(正确的账号) username = "python" # 保存在服务器数据库中的用户账号(正确的账号)
userpassword = "123456" userpassword = "123456"
while True: while True:
...@@ -11,6 +12,7 @@ while True: ...@@ -11,6 +12,7 @@ while True:
print("用户密码错误,请重新输入.") print("用户密码错误,请重新输入.")
if password!=userpassword: if password!=userpassword:
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