import re

def checkPassword(password):
    pwdRegex = re.compile(r'''
        (?=^.{8,}$)       # 八位数及以上
        ((?=.*\d+))       # 至少一位数字
        (?![.\n])         # 没有换行符
        (?=.*[A-Z])       # 大写任意个
        (?=.*[a-z]).*$    # 小写任意个
    ''',re.VERBOSE)

    match = pwdRegex.match(password)
    return match is not None

print('请输入密码：')
password = str(input())
print(checkPassword(password))

9711e7b6f3b12ee8ee14fa33d975d4f4900b8b3d
<mask token>


def checkPassword(password):
    pwdRegex = re.compile(
        """
        (?=^.{8,}$)       # 八位数及以上
        ((?=.*\\d+))       # 至少一位数字
        (?![.\\n])         # 没有换行符
        (?=.*[A-Z])       # 大写任意个
        (?=.*[a-z]).*$    # 小写任意个
    """
        , re.VERBOSE)
    match = pwdRegex.match(password)
    return match is not None


<mask token>

<mask token>


def checkPassword(password):
    pwdRegex = re.compile(
        """
        (?=^.{8,}$)       # 八位数及以上
        ((?=.*\\d+))       # 至少一位数字
        (?![.\\n])         # 没有换行符
        (?=.*[A-Z])       # 大写任意个
        (?=.*[a-z]).*$    # 小写任意个
    """
        , re.VERBOSE)
    match = pwdRegex.match(password)
    return match is not None


print('请输入密码：')
<mask token>
print(checkPassword(password))

<mask token>


def checkPassword(password):
    pwdRegex = re.compile(
        """
        (?=^.{8,}$)       # 八位数及以上
        ((?=.*\\d+))       # 至少一位数字
        (?![.\\n])         # 没有换行符
        (?=.*[A-Z])       # 大写任意个
        (?=.*[a-z]).*$    # 小写任意个
    """
        , re.VERBOSE)
    match = pwdRegex.match(password)
    return match is not None


print('请输入密码：')
password = str(input())
print(checkPassword(password))

import re


def checkPassword(password):
    pwdRegex = re.compile(
        """
        (?=^.{8,}$)       # 八位数及以上
        ((?=.*\\d+))       # 至少一位数字
        (?![.\\n])         # 没有换行符
        (?=.*[A-Z])       # 大写任意个
        (?=.*[a-z]).*$    # 小写任意个
    """
        , re.VERBOSE)
    match = pwdRegex.match(password)
    return match is not None


print('请输入密码：')
password = str(input())
print(checkPassword(password))

import re

def checkPassword(password):
    pwdRegex = re.compile(r'''
        (?=^.{8,}$)       # 八位数及以上
        ((?=.*\d+))       # 至少一位数字
        (?![.\n])         # 没有换行符
        (?=.*[A-Z])       # 大写任意个
        (?=.*[a-z]).*$    # 小写任意个
    ''',re.VERBOSE)

    match = pwdRegex.match(password)
    return match is not None

print('请输入密码：')
password = str(input())
print(checkPassword(password))
