issue55:tutopython
Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
issue55:tutopython [2012/01/29 18:28] – andre_domenech | issue55:tutopython [2012/01/30 21:50] (Version actuelle) – fredphil91 | ||
---|---|---|---|
Ligne 149: | Ligne 149: | ||
**We check to see if there is either “' | **We check to see if there is either “' | ||
- | posx = line.find("' | + | |
- | pos1 = line.find("' | + | pos1 = line.find("' |
- | l1 = line[:pos1] | + | l1 = line[:pos1] |
This line checks for escaped single quotes and replaces them. | This line checks for escaped single quotes and replaces them. | ||
- | line = line.replace(" | + | |
If we have a closing statement (“);”), that is the end of our insert set, and we can create the statement by joining the prelude to the actual value statement. This is shown on the previous page, bottom right. | If we have a closing statement (“);”), that is the end of our insert set, and we can create the statement by joining the prelude to the actual value statement. This is shown on the previous page, bottom right. | ||
Ligne 199: | Ligne 199: | ||
Ce code devrait fonctionner tel quel dans plus de 90 % des cas. Nous pourrions avoir oublié certaines choses à cause d' | Ce code devrait fonctionner tel quel dans plus de 90 % des cas. Nous pourrions avoir oublié certaines choses à cause d' | ||
- | Comme toujours, le code est disponible sur Pastebin : http:// | + | Comme toujours, le code est disponible sur Pastebin : http:// |
À la prochaine fois. | À la prochaine fois. | ||
issue55/tutopython.1327858086.txt.gz · Dernière modification : 2012/01/29 18:28 de andre_domenech