<br><br><div class="gmail_quote">El 23 de noviembre de 2010 15:34, Gustavo Cabral <span dir="ltr">&lt;<a href="mailto:gmcabral@gmail.com">gmcabral@gmail.com</a>&gt;</span> escribió:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hola:<br>
Soy nuevo en esto y leí algunos artículos para comenzar con Python,<br>
pero necesito con urgencia entender que significa el % en el código,<br>
para ser más claro, tengo este pedazo de código, el cual retorna unos<br>
valores de una BD, pero no logro entender para que se usa el &quot;%&quot;:<br>
<br>
for i in ids:<br>
        #get the id of the current function of the employee of identifier &quot;i&quot;<br>
        sql_req= &quot;&quot;&quot;<br>
        SELECT <a href="http://f.id" target="_blank">f.id</a> AS func_id<br>
        FROM hr_contract c<br>
          LEFT JOIN res_partner_function f ON (<a href="http://f.id" target="_blank">f.id</a> = c.function)<br>
        WHERE<br>
          (c.employee_id = %d)<br>
        &quot;&quot;&quot; % (i,)<br>
<br>
Me podrían ayudar con esto? no entiendo el uso del &quot;%&quot;<br>
Muchas Gracias.<br><br></blockquote><div><br><a href="http://docs.python.org/release/2.5.2/lib/typesseq-strings.html">http://docs.python.org/release/2.5.2/lib/typesseq-strings.html</a><br><br>Saludos. <br></div></div>