|
Bas de page | |
---|---|
Auteur | Sujet : [Python] Supprimer la fin d'un fichier texte |
Tangrim Des bisous et des nounours ! | Bonjour,
--------------- Des Bisous et des nounours ! | Internet 2025 | Dungeon-Generator |
![]() Publicité | Posté le 20-01-2010 à 10:59:17 ![]() ![]() |
olivthill | Il faut :
|
masklinn í dag viðrar vel til loftárása |
--------------- I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box by throwing away the limits imposed by overbearing genetic regulations? Isn't that a good thing? |
Tangrim Des bisous et des nounours ! | Pour les problèmes de suppression de lignes je comptais déjà passer par quelque chose de la sorte, le problème que j'ai est de detecter la dernière occurence d'une chaîne de caractères dans le fichier.
--------------- Des Bisous et des nounours ! | Internet 2025 | Dungeon-Generator |
masklinn í dag viðrar vel til loftárása |
Et la chaîne à checker, c'est quel genre, elle a quelle tête? Message édité par masklinn le 20-01-2010 à 11:43:35 --------------- I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box by throwing away the limits imposed by overbearing genetic regulations? Isn't that a good thing? |
Tangrim Des bisous et des nounours ! | Elle peut arriver n'importe où, et elle n'est pas dans toutes les lignes.
--------------- Des Bisous et des nounours ! | Internet 2025 | Dungeon-Generator |
masklinn í dag viðrar vel til loftárása |
--------------- I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box by throwing away the limits imposed by overbearing genetic regulations? Isn't that a good thing? |
Tangrim Des bisous et des nounours ! |
masklinn í dag viðrar vel til loftárása |
Message édité par masklinn le 20-01-2010 à 13:59:43 --------------- I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box by throwing away the limits imposed by overbearing genetic regulations? Isn't that a good thing? |
Tangrim Des bisous et des nounours ! | Il y a une erreur de synthaxe quelque part mais je crois avoir pigé le principe, merci beaucoup pour ton aide. --------------- Des Bisous et des nounours ! | Internet 2025 | Dungeon-Generator |
![]() Publicité | Posté le 20-01-2010 à 14:33:51 ![]() ![]() |
Tangrim Des bisous et des nounours ! | Ça fonctionne :
Message édité par Tangrim le 20-01-2010 à 16:49:07 --------------- Des Bisous et des nounours ! | Internet 2025 | Dungeon-Generator |
suizokukan | J'arrive après la discussion... mais la création d'un fichier temporaire passe plutôt par un module spécialisé en Python : http://docs.python.org/library/tempfile.html, non ? --------------- rule #1 : trust the python |
Tangrim Des bisous et des nounours ! |
--------------- Des Bisous et des nounours ! | Internet 2025 | Dungeon-Generator |
Sujets relatifs | |
---|---|
Redirection de la sortie standard vers une ligne d'un fichier texte | VSB et excel fichier VALIDE - on peut fermer le post |
parcourir fichier CSV (TAB), saut de ligne non détecté | [Résolu] boucle for ne retient que la dernière ligne du fichier |
suppression structure dans fichier | threads en chat sur Python |
[C] Ecriture dans un fichier | [PHP] Remplacer un texte avec étoiles et plus présent dans un autre |
CMS en PHP vs CMS en Python | |
Plus de sujets relatifs à : [Python] Supprimer la fin d'un fichier texte |