Commit 040a9150 by BellCodeEditor

save project

parent 4726a6f5
Showing with 8 additions and 10 deletions
...@@ -5,14 +5,13 @@ userpassword = "123456" # 保存在服务器数据库中的用户密码(正 ...@@ -5,14 +5,13 @@ userpassword = "123456" # 保存在服务器数据库中的用户密码(正
while True: while True:
i=input("请输入账号") i=input("请输入账号")
a=input("请输入密码") if i==username:
if i == username and a == userpassword: a=input("请输入密码")
print("登陆成功") if a == userpassword:
break print("登陆成功")
break
else:
print("密码错误")
else: else:
print("输入错误")
if i !=username:
print("账号错误") print("账号错误")
if a !=userpassword: continue
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