Commit 5cf8c141 by BellCodeEditor

save project

parent ddd11925
Showing with 3 additions and 3 deletions
...@@ -6,10 +6,10 @@ while True: ...@@ -6,10 +6,10 @@ while True:
if name==username and password==userpassword: if name==username and password==userpassword:
print("登录成功!") print("登录成功!")
break break
if name!=username:
elif name!=username:
print("账号登录失败!请重新登录") print("账号登录失败!请重新登录")
continue else:
if password!=userpassword:
print("密码登录失败!请重新登录") 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