Commit 75f4d99b by BellCodeEditor

save project

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