Commit a1bf5775 by BellCodeEditor

auto save

parent 4a623885
Showing with 5 additions and 6 deletions
......@@ -2,14 +2,12 @@ username = "6789"
userpassword = "123456"
while True:
a = input("请输入用户名:")
if a != username:
print("用户名错误!重输!BD")
continue
b = input("请输入密码:")
if b != userpassword:
print("密码错误!重输!BD")
continue
if a == username and b == userpassword:
print("登录成功!")
break
if a != username:
print("用户名错误!重输!BD")
if b != userpassword:
print("密码错误!重输!BD")
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