Commit 206cb771 by BellCodeEditor

save project

parent b810c294
Showing with 15 additions and 0 deletions
username = "python"
userpassword = "123456"
for i in range(3):
if username == input("请输入用户名:"):
if userpassword == input("请输入密码:"):
print("登录成功!")
break
else:
print("用户名和密码错误!请重新输入")
else:
print('你还有'+i+'次登陆机会')
print("用户名和密码错误!请重新输入")
print("登录次数用尽,请带身份证来我司解锁!")
\ 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