Commit 29b4dbd1 by BellCodeEditor

auto save

parent 370443ec
Showing with 5 additions and 4 deletions
...@@ -8,8 +8,9 @@ while True: ...@@ -8,8 +8,9 @@ while True:
if name == username and password == userpassword: if name == username and password == userpassword:
print("登入成功!") print("登入成功!")
break break
if name == username: if name != username:
print("账号错误!") print("账号错误!")
if password == userpassword: else:
if not password == userpassword:
print("密码错误!") print("密码错误!")
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