Commit 040a9150 by BellCodeEditor

save project

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