Commit 040a9150 by BellCodeEditor

save project

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