Commit da27fcb5 by BellCodeEditor

save project

parent 5c1838ae
Showing with 3 additions and 0 deletions
...@@ -3,6 +3,9 @@ userpassword="123456" ...@@ -3,6 +3,9 @@ userpassword="123456"
while True: while True:
name=input("用户名:") name=input("用户名:")
password=input("密码:") password=input("密码:")
if username==name and userpassword==password:
print("登录成功")
break
if username!=name: if username!=name:
print("用户名错误!请重新输入!") print("用户名错误!请重新输入!")
if userpassword!=password: if userpassword!=password:
......
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