Deutsch   English   Français   Italiano  
<vb8n4h$3mq3n$1@dont-email.me>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Dominique <dominique.sextant@orange.fr.invalid>
Newsgroups: fr.comp.lang.python
Subject: =?UTF-8?Q?Re=3A_Panne_de_m=C3=A9moire_avec_print=2E=2E=2E?=
Date: Wed, 4 Sep 2024 06:19:29 +0200
Organization: A noiseless patient Spider
Lines: 32
Message-ID: <vb8n4h$3mq3n$1@dont-email.me>
References: <vb7a16$3crhi$1@dont-email.me>
 <liste-20240903174411@ram.dialup.fu-berlin.de>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 04 Sep 2024 06:19:30 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="88a109089950ff4ae6ffe1e1c585c212";
	logging-data="3893367"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1+dZN/Fes7NhDoWZZiMXclvjLNkThsM+aI="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:dOy8c7nEGvhFL3fy6gDGadf8TAI=
Content-Language: fr
In-Reply-To: <liste-20240903174411@ram.dialup.fu-berlin.de>
Bytes: 2104

Le 03/09/2024 à 18:46, Stefan Ram a écrit :
> Dominique <dominique.sextant@orange.fr.invalid> a écrit ou cité :
>> Mais la sortie du print est toute moche


Je te remercie, mais ce n'est pas tout-à-fait ça que je recherche. Si je 
fais print liste directement depuis mon script, j'ai ce type de sortie :

[[0, 1, '0'], [1, 2, '1/2'], [1, 3, '1/3'], [1, 4, '1/4'], [1, 5, 
'1/5'], [1, 6, '1/6'], [1, 7, '1/7'], [2, 3, '2/3']] 8
[[0, 1, '0'], [1, 2, '1/2'], [1, 3, '1/3'], [1, 4, '1/4'], [1, 5, 
'1/5'], [1, 6, '1/6'], [1, 7, '1/7'], [2, 3, '2/3']] 8 etc...

Si, par contre, je tape liste directement, après exécution du script,, 
j'obtiens ceci, sui est beaucoup plus lisible :

liste
Out[3]:
[[0, 1, 0.0],
  [1, 2, 0.5],
  [1, 3, 0.3333333333333333],
  [1, 4, 0.25],
  [1, 5, 0.2], etc...

Ma question est de savoir comment obtenir cet affichage en colonne 
directement depuis mon script avec print liste.

j'espère avoir été plus clair 😕

-- 
Dominique
Esto quod es