1. import re
    2. p = re.compile('a')
    3. print(p.match('a'))
    4. # 输出
    5. <re.Match object; span=(0, 1), match='a'>