Commit eb976186 by BellCodeEditor

save project

parent 5ae59dc5
Showing with 4 additions and 2 deletions
...@@ -3,9 +3,9 @@ userpassword = "123456" # 保存在服务器数据库中的用户密码(正 ...@@ -3,9 +3,9 @@ userpassword = "123456" # 保存在服务器数据库中的用户密码(正
name=input("输入用户") name=input("输入用户")
password=input("输入密码") password=input("输入密码")
i=3 i=3
while True while True:
if username==name and userpassword==password if username==name and userpassword==password
dreak break
print("输入错误") print("输入错误")
i-=1 i-=1
elif: elif:
...@@ -15,6 +15,8 @@ while True ...@@ -15,6 +15,8 @@ while True
else: else:
userpassword!=password userpassword!=password
print("密码错误") print("密码错误")
if i>3:
exit()
print("登录成功") print("登录成功")
......
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