Commit 23918763 by BellCodeEditor

save project

parent 550bf917
Showing with 7 additions and 3 deletions
...@@ -4,8 +4,12 @@ while True: ...@@ -4,8 +4,12 @@ while True:
a=input("账号密码是多少?") a=input("账号密码是多少?")
b=input("手机号码是多少?") b=input("手机号码是多少?")
if a == usename and b == userpassword: if a == usename and b == userpassword:
print ("输入正确,登录成功") print ("登录成功")
break break
else: else:
print ("输入错误,登录失败") print ("输入错误,登录失败")
if a != usename:
\ No newline at end of file print ("用户名不存在,请重新输入!")
if b != userpassword:
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