Il 8 maggio 2015 18:10, computer service <cservice2...@gmail.com> ha scritto:

> scusate ancora ma guardando meglio l'html ho trovato questa riga:
>                                         <td width="47%" align="left" 
> valign="middle"><a
> href='http://www.gabetti.it/'><img src="./Photo.png" width="111" height="74" 
> border="0"
> /></td>
> quel 47% tra gli apici può creare problemi o sbaglio nel riconoscimento del 
> segnaposto?

Crea problemi.

    >>> '<td width="47%"><img src="%(foto)s"' % vars()
    Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
    ValueError: unsupported format character '"' (0x22) at index 14
    >>> '<td width="47%%"><img src="%(foto)s"' % vars()
    '<td width="47%"><img src="xxx.jpg"'

> inoltre %(foto)s è scritto correttamente o avrei dovuto scriverlo così 
> %('foto')s ?

È scritto correttamente.

> intanto vi ringrazio per le vostre risposte.
> Grazie
> Gilberto

Ciao,
©

-- 
|:**THE BEER-WARE LICENSE** (Revision 42):
| <mi...@python.it> wrote this mail. As long as you retain
| this notice you can do whatever you want with this stuff.
| If we meet some day, and you think this stuff is worth it,
| you can buy me a beer in return.
|                                            --Carlo Miron :
_______________________________________________
Python mailing list
Python@lists.python.it
http://lists.python.it/mailman/listinfo/python

Rispondere a