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

Administrator / lesson4_5

  • 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
  • lesson4_5
  • diy2.py
Find file
BlameHistoryPermalink
  • BellCodeEditor's avatar
    save project · 284ae702
    BellCodeEditor committed 2 years ago
    284ae702
diy2.py 576 Bytes
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
usr="蔡徐坤"    # 保存在服务器数据库中的用户账号(正确的账号)
usrk="鸡"    # 保存在服务器数据库中的用户密码(正确的密码)
wo=0
while True:
    ipusr=input("Input your name")
    ipusrk=input("Input your key")
    if ipusr==usr and ipusrk==usrk:
        print("Log in!")
        break
    else:
        wo+=1 
        if wo>=5:
            print("Your account password has been tried too many times and has been banned!!!")
            break       
        else:
            print("Your name or key was wrong,please try again.")