Commit 5197d616 by BellCodeEditor

auto save

parent 2860c52e
Showing with 7 additions and 1 deletions
......@@ -5,7 +5,12 @@ while True:
password = input("请输入密码:")
if name == username and password == userpassword:
print("登录成功!")
break#退出循环
break #退出循环
if name != username:
print("输入的用户名不正确,请重新输入")
continue #退出本次循环
if password != userpassword:
print("输入的密码不正确,请重新输入")
else:
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