Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > fr.comp.lang.python > #3387

Re: Création liste en ligne en .txt

Newsgroups fr.comp.lang.python
Subject Re: Création liste en ligne en .txt
From thomasdeshayes <nospam_t.deshayes2111@laposte.net.invalid>
References <kdadnUbx854BgijCnZ2dnUU798zNnZ2d@giganews.com>
Organization !No_Organization!
Message-ID <Y_6dnX7k5qy3hCDCnZ2dnUU7983NnZ2d@giganews.com> (permalink)
Date 2020-11-24 08:31 -0600

Show all headers | View raw


Le mercredi 18 Novembre 2020 à 14:20 par ThomasDeshayes :
> Bonjour,
> Je souhaite réaliser le jeu du pendu avec une liste que j'ai crée
> en .txt, mais je rencontre un problème avec l'importation de la liste
> (les mots sont en lignes et non en colonne), c'est-à-dire que je voudrai
> prendre un mot de la liste mais python me prend toutes la ligne de la liste. 
> PS : les mots sont séparés uniquement par des points-virgules. 
> 
> Pouvez-vous m'aider, s'il vous plait
Je crois qu'il faut utiliser split ";"

Back to fr.comp.lang.python | Previous | NextPrevious in thread | Find similar


Thread

Création liste en ligne en .txt ThomasDeshayes <nospam_t.deshayes2111@laposte.net.invalid> - 2020-11-18 07:20 -0600
  Re: Création liste en ligne en .txt Benoit Izac <use.reply.to@INVALID.ADDRESS> - 2020-11-18 18:03 +0100
    Re: Création liste en ligne en .txt thomasdeshayes <nospam_t.deshayes2111@laposte.net.invalid> - 2020-11-19 01:51 -0600
      Re: Création liste en ligne en .txt Benoit Izac <use.reply.to@INVALID.ADDRESS> - 2020-11-19 16:14 +0100
  Re: Création liste en ligne en .txt thomasdeshayes <nospam_t.deshayes2111@laposte.net.invalid> - 2020-11-24 08:31 -0600

csiph-web