Commit 8f880ce8 by BellCodeEditor

auto save

parent 3e7cf17e
Showing with 3 additions and 2 deletions
...@@ -8,11 +8,12 @@ while True: ...@@ -8,11 +8,12 @@ while True:
if a == username and o==userpassword: if a == username and o==userpassword:
print("登陆成功") print("登陆成功")
break break
if a != username: elif a != username:
print("账号错误") print("账号错误")
continue continue
if o !=userpassword: else:
print("密码错误") print("密码错误")
print("欢迎来到编程世界") print("欢迎来到编程世界")
# 如果用户输入的账号、密码正确,提示登陆成功 # 如果用户输入的账号、密码正确,提示登陆成功
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