Commit 6cdbd7a3 by BellCodeEditor

save project

parent d9870638
Showing with 7 additions and 5 deletions
i=3
urename = "python" urename = "python"
urepassword = "123456" urepassword = "123456"
while True: while True:
name = input("请输入用户名:") if i>0:
password = input("请输入密码:") name = input("请输入用户名:")
if name == urename and password == urepassword: password = input("请输入密码:")
print("登入成功!") if name == urename and password == urepassword:
break print("登入成功!")
break
if name != urename: if name != urename:
print("用户名和密码错误!请重新输入") print("用户名和密码错误!请重新输入")
continue continue
......
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