Commit b5adf075 by BellCodeEditor

save project

parent 2ae1bf0a
Showing with 2 additions and 6 deletions
...@@ -3,14 +3,9 @@ userpassword = "123456" ...@@ -3,14 +3,9 @@ userpassword = "123456"
while Ture: while Ture:
name = input("请输入用户名") name = input("请输入用户名")
password = input("请输入密码") password = input("请输入密码")
if name != "python":
print("用户名错误")
continue
if password != "123456":
print("密码错误")
continue
if name == username and password == userpassword: if name == username and password == userpassword:
print("登入成功") print("登入成功")
break break
elif name != ""
name = input("请输入用户名") name = input("请输入用户名")
password = input("请输入密码") password = input("请输入密码")
\ 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