Commit 265ecfb5 by BellCodeEditor

save project

parent 1ed486b7
Showing with 14 additions and 4 deletions
...@@ -8,10 +8,20 @@ userpassword = "123456" # 保存在服务器数据库中的用户密码(正 ...@@ -8,10 +8,20 @@ userpassword = "123456" # 保存在服务器数据库中的用户密码(正
# 如果用户输入的账号、密码正确,提示登陆成功 # 如果用户输入的账号、密码正确,提示登陆成功
while True : while True :
name=input("用户名") name=input("用户名")
password=input("密码") if name==username:
if name==username and password==userpassword:
break
if name!=username:
break break
print("你错了")
print("真确") password=input("密码")
if password==userpassword:
# if name != username:
# print("用户名你错了")
# continue
# if password != userpassword:
# 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