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

bellcode / lesson3-4-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-4-1_DIY1
  • m.py
Find file
BlameHistoryPermalink
  • BellCodeEditor's avatar
    save project · 95f9b41d
    BellCodeEditor committed 4 years ago
    95f9b41d
m.py 366 Bytes
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
username = "python"
userpassword = "123456"
while True:
    x=input("请输入账号:")
    y=input("请输入密码:")
    if x==username and y==userpassword:
        print("密码正确")
        break
    if x != username:
        input("用户名不存在")
        continue
    if y != userpassword:
        input("密码错误")