Commit 49e09feb by BellCodeEditor

save project

parent 50c30aa0
Showing with 12 additions and 8 deletions
a=3
usernanme="python"
userpassword="123456"
while True:
name=input("请输入用户名")
password=input("请输入密码")
#请用input()实现用户输入账号、密码的功能
if usernanme==name and userpassword==password:
print("登录成功")
break
elif name != usernanme:
print("重新登录用户名")
if a>0:
name=input("请输入用户名")
password=input("请输入密码")
#请用input()实现用户输入账号、密码的功能
a-=1
if usernanme==name and userpassword==password:
print("登录成功")
break
elif name != usernanme:
print("重新登录用户名")
else:
print("重新登录密码")
exit("你的账号已被锁住")
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