Commit 75f4d99b by BellCodeEditor

save project

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