Commit 69f4b1e5 by BellCodeEditor

save project

parent 65280e9a
Showing with 7 additions and 1 deletions
...@@ -4,10 +4,16 @@ while True: ...@@ -4,10 +4,16 @@ while True:
name=input("name") name=input("name")
password=input("password") password=input("password")
# 请用input()实现用户输入账号、密码的功能 # 请用input()实现用户输入账号、密码的功能
while True:
if username==name and userpassword==password: if username==name and userpassword==password:
print("登陆成功") print("登陆成功")
break if username !=name:
print("用户名!!!")
if userpassword !=password:
print("密码!!!")
if username !=name and userpassword !=password:
print("债见,想想好啊") print("债见,想想好啊")
break
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