Commit 03b0ac3b by BellCodeEditor

save project

parent 7c665b7e
Showing with 15 additions and 5 deletions
username="python" username="python"
userpassword="123456" userpassword="123456"
name=input("请输入用户名:") a=5
password=input("请输入密码:") while True:
if name==username and password==userpassword : if a>0:
print("登录成功") name=input("请输入用户名:")
\ No newline at end of file password=input("请输入密码:")
a=a-1
if name==username and password==userpassword :
print("登录成功")
else:
print("请重新输入")
print("您还有"+str(a)+"次机会")
else:
print("账户已锁定")
break
\ 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