Commit 6ebe9cd6 by BellCodeEditor

auto save

parent 34590ede
Showing with 3 additions and 1 deletions
...@@ -3,13 +3,15 @@ username="python" ...@@ -3,13 +3,15 @@ username="python"
userpassword="123456" userpassword="123456"
while True: while True:
passname=input("输入名字") passname=input("输入名字")
password=input("输入密码") password=input("输入密码血")
i-=1 i-=1
if i<0:
if name==username and password == userpassword: if name==username and password == userpassword:
print("登陆成功") print("登陆成功")
break break
if name != username: if name != username:
print("用户名错误") print("用户名错误")
print("w")z
continue continue
if password != userpassword: if password != userpassword:
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