Commit a0e44330 by BellCodeEditor

save project

parent 75f4d99b
Showing with 4 additions and 1 deletions
username = "python" # 保存在服务器数据库中的用户账号(正确的账号)
userpassword = "123456" # 保存在服务器数据库中的用户密码(正确的密码)
i = 3
while True:
if i>0:
i -= 1
......@@ -11,8 +11,11 @@ while True:
break
if myusername == username:
print("账号错误!")
print("你还有"+str(i)+"次输入机会")
continue
if myuserpassword == userpassword:
print("密码错误!")
print("你还有"+str(i)+"次输入机会")
else:
print("你的账号被锁定!!!!!!!!!!!!!!!!!!!")
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