Commit 9bf90d66 by BellCodeEditor

save project

parent 9a03a346
Showing with 14 additions and 9 deletions
i=5
username = "python" username = "python"
userpassword = "123456" userpassword = "123456"
while True: while True:
name=input("请输入账号") if i>0:
password=input("请输入密码") name=input("请输入账号")
if username == name and password == userpassword: password=input("请输入密码")
print("登陆成功") i-=i
break if username == name and password == userpassword:
elif username != name: print("登陆成功")
print("账号输入错误") break
elif userpassword != password: elif username != name:
print("密码输入错误") print("账号输入错误")
elif userpassword != password:
print("密码输入错误")
else
print("欢迎来到贝尔编辑器") 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