|
@@ -224,7 +224,7 @@ |
|
|
The following example Python 2 code searches for a given Python |
|
|
The following example Python 2 code searches for a given Python |
|
|
function definition and prints the URL of the first result: |
|
|
function definition and prints the URL of the first result: |
|
|
</p> |
|
|
</p> |
|
|
<table class="highlighttable"> |
|
|
|
|
|
|
|
|
<table class="highlighttable code-example"> |
|
|
<tr> |
|
|
<tr> |
|
|
<td class="linenos"> |
|
|
<td class="linenos"> |
|
|
<div class="linenodiv"> |
|
|
<div class="linenodiv"> |
|
@@ -269,8 +269,7 @@ |
|
|
|
|
|
|
|
|
<span class="k">if</span> <span class="n">__name__</span> <span class="o">==</span> <span class="s">"__main__"</span><span class="p">:</span> |
|
|
<span class="k">if</span> <span class="n">__name__</span> <span class="o">==</span> <span class="s">"__main__"</span><span class="p">:</span> |
|
|
<span class="k">if</span> <span class="nb">len</span><span class="p">(</span><span class="n">argv</span><span class="p">)</span> <span class="o">==</span> <span class="mi">2</span><span class="p">:</span> |
|
|
<span class="k">if</span> <span class="nb">len</span><span class="p">(</span><span class="n">argv</span><span class="p">)</span> <span class="o">==</span> <span class="mi">2</span><span class="p">:</span> |
|
|
<span class="n">get_function</span><span class="p">(</span><span class="n">argv</span><span class="p">[</span><span class="mi">1</span><span class="p">])</span> |
|
|
|
|
|
</pre> |
|
|
|
|
|
|
|
|
<span class="n">get_function</span><span class="p">(</span><span class="n">argv</span><span class="p">[</span><span class="mi">1</span><span class="p">])</span></pre> |
|
|
</div> |
|
|
</div> |
|
|
</td> |
|
|
</td> |
|
|
</tr> |
|
|
</tr> |
|
|