Commit e67ded9a by BellCodeEditor

save project

parent ed3714a5
Showing with 5 additions and 1 deletions
...@@ -7,8 +7,12 @@ while True: ...@@ -7,8 +7,12 @@ while True:
password=input("请输入密码") password=input("请输入密码")
# 如果用户输入的账号、密码正确,提示登陆成功 # 如果用户输入的账号、密码正确,提示登陆成功
if username==name and userpassword ==password: if username == name and password == userpassword:
print("登入成功") print("登入成功")
break break
if username!=name:
print("账号错误,请重新输入")
if userpassword!=password:
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