.isValid">[文档]</a>    <span class="k">def</span> <span class="nf">isValid</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">text</span><span class="p">,</span> <span class="n">parsed</span><span class="p">):</span>        
        <span class="k">return</span> <span class="s1">&#39;模式&#39;</span> <span class="ow">in</span> <span class="n">text</span> <span class="ow">and</span> \
            <span class="nb">any</span><span class="p">(</span><span cla