Commit 5bb96074 by BellCodeEditor

save project

parent fe83db4a
Showing with 4 additions and 0 deletions
...@@ -5,6 +5,10 @@ userpassword = "123456" # 保存在服务器数据库中的用户密码(正 ...@@ -5,6 +5,10 @@ userpassword = "123456" # 保存在服务器数据库中的用户密码(正
while True: while True:
x=input("请输入你的账号") x=input("请输入你的账号")
y=input("请输入密码") y=input("请输入密码")
if x!=username and y==userpassword:
print("账号输入有误,请重新输入")
if x==username and y!=userpassword:
print("密码输入有误,请重新输入")
if x==username and y==userpassword: if x==username and y==userpassword:
break break
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