Commit 38fdfc0d by BellCodeEditor

save project

parent 912e9fae
Showing with 6 additions and 2 deletions
...@@ -2,9 +2,13 @@ username = "python" ...@@ -2,9 +2,13 @@ username = "python"
userpassword = "123456" userpassword = "123456"
while True: while True:
name = input("请输入用户名:") name = input("请输入用户名:")
if username != name: if name == usename and password==userpassword:
print("456")
break
elif name!=usename:
print("123") print("123")
continue
password = input("请输入密码:") password = input("请输入密码:")
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