Commit 0215a42c by BellCodeEditor

save project

parent 15d98a07
Showing with 1 additions and 6 deletions
...@@ -6,11 +6,7 @@ while True: ...@@ -6,11 +6,7 @@ while True:
if name == aname and passs == apassword: if name == aname and passs == apassword:
print("登录成功!") print("登录成功!")
break break
if name!=aname: if name!=aname or passs!=apassword:
print("这个账号不是你的吧!") print("这个账号不是你的吧!")
continue
if passs!=apassword:
print("密码错误,这个账号不是你的吧!")
continue
print("用户名或密码错误!请重新输入") print("用户名或密码错误!请重新输入")
print("欢迎来到贝尔编程!") 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