Commit 3aca7bfa by BellCodeEditor

save project

parent aac7fc1f
Showing with 3 additions and 2 deletions
...@@ -8,10 +8,11 @@ while True: ...@@ -8,10 +8,11 @@ while True:
break break
if name!=username: if name!=username:
print("用户不存在,请重新输入") print("用户不存在,请重新输入")
if passport!=userpassword and name!=username:
continue
if passport!=userpassword: if passport!=userpassword:
print("密码错误,请重新输入") print("密码错误,请重新输入")
if passport!=userpassword and name!=username:
print("请重新输入")
print("欢迎来到贝尔编程!") print("欢迎来到贝尔编程!")
# 请用input()实现用户输入账号、密码的功能 # 请用input()实现用户输入账号、密码的功能
......
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