Commit 75f4d99b by BellCodeEditor

save project

parent d28c9b2a
Showing with 7 additions and 0 deletions
...@@ -2,6 +2,8 @@ username = "python" # 保存在服务器数据库中的用户账号(正确 ...@@ -2,6 +2,8 @@ username = "python" # 保存在服务器数据库中的用户账号(正确
userpassword = "123456" # 保存在服务器数据库中的用户密码(正确的密码) userpassword = "123456" # 保存在服务器数据库中的用户密码(正确的密码)
while True: while True:
if i>0:
i -= 1
myusername = input("账号:") myusername = input("账号:")
myuserpassword = input("密码:") myuserpassword = input("密码:")
if myusername == username and myuserpassword == userpassword: if myusername == username and myuserpassword == userpassword:
...@@ -11,4 +13,8 @@ while True: ...@@ -11,4 +13,8 @@ while True:
print("账号错误!") print("账号错误!")
if myuserpassword == userpassword: if myuserpassword == userpassword:
print("密码错误!") print("密码错误!")
else:
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