Skip to content
  • P
    Projects
  • G
    Groups
  • S
    Snippets
  • Help

bellcode / lesson3-5-2_DIY1

  • This project
    • Loading...
  • Sign in
Go to a project
  • Project
  • Repository
  • Issues 0
  • Merge Requests 0
  • Pipelines
  • Wiki
  • Snippets
  • Members
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Branches
  • Tags
  • Contributors
  • Graph
  • Compare
  • Charts
Switch branch/tag
  • lesson3-5-2_DIY1
  • bug.py
Find file
BlameHistoryPermalink
  • BellCodeEditor's avatar
    save project · 3d76455f
    BellCodeEditor committed 3 years ago
    3d76455f
bug.py 574 Bytes
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
i = 3
username="pythan"
userpassword="123456"
while True:
    if i>0:
        name = input("输入账号:")
        password = input("输入密码:")
        i=i-1
        if name == username and password == userpassword: 
            print("登陆成功")
            break
        elif name != username:
            print("账号错误,请重试")
        else:
            password != userpassword
            print("密码错误")
            print("错误,你还有")
    print("账号已锁定,请继续来我院治疗")
    exit()
print("欢迎来到天水二院")