Commit 39fd0119 by BellCodeEditor

auto save

parent 3d4fbfe5
Showing with 13 additions and 6 deletions
username = "python" username = "cjl"
userpassword = "123456" userpassword = "123e456"
while True: while True:
name = input("请输入用户名:") name = input("请输入用户名:")
z if name != username :
continue
print("错误")
password = input("请输入密码:") password = input("请输入密码:")
if password != userpassword :
print("错误")
continue
if name == username and password == userpassword: if name == username and password == userpassword:
print("登录成功!") print("登录成功!")
break break
if password != userpassword :
print("sb")
......
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