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

bellcode / lesson3-1-1_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-1-1_DIY1
  • diy.4.py
Find file
BlameHistoryPermalink
  • BellCodeEditor's avatar
    save project · 58d1432e
    BellCodeEditor committed 3 years ago
    58d1432e
diy.4.py 586 Bytes
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
usename = "python"
password = "123456"
while True:
    if i>0:
        us = input("请输入您的用户名:")
        if us != usename :
            print("用户名不正确,请重新输入!")
            continue
        ps = input("请输入您的密码:")
        if ps != password :
            print("密码不正确,请重新输入!")
            continue
        if (us == usename)and(ps == password):
            print("用户名,密码正确")
            break
    else:
        print("您的账户已被锁定,请拿证件"):
        exit()