Commit 6a6f5a0e by BellCodeEditor

auto save

parent 45c1a9ef
Showing with 6 additions and 7 deletions
...@@ -6,9 +6,8 @@ while True: ...@@ -6,9 +6,8 @@ while True:
if a==username and b==userpassword: if a==username and b==userpassword:
print("输入正确,登录成功") print("输入正确,登录成功")
break break
elif a==username and b!=userpassword: if a!=username :
print("名称正确,密码错误,请重新输入") print("名称错误,请重新输入")
elif a!=username and b==userpassword: continue
print("密码正确,名称错误,请重新输入") if b!=userpassword :
else: print("密码错误,请重新输入")
print("输入错误,请重新输入") \ No newline at end of file
\ 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