Path: csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: pehache Newsgroups: fr.comp.lang.python Subject: =?UTF-8?B?UmU6IExhbmdhZ2VzIFtXYXMgOltBTk5dIENyw6lzdXMsIEtLIENvbW1h?= =?UTF-8?Q?nder=2c_Litchi=5d?= Date: Mon, 11 Feb 2019 08:39:22 +0100 Lines: 23 Message-ID: References: <87va1qu9fu.fsf@izac.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Trace: individual.net Ca6nHo/dWnhKYLGGr6lfuQTB6kUxBz1CGFcd2j4mVYEA7V93gV Cancel-Lock: sha1:ezguQQhWY4xeQFUFJ3sb0EnDe3s= User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:60.0) Gecko/20100101 Thunderbird/60.5.0 In-Reply-To: <87va1qu9fu.fsf@izac.org> Content-Language: fr Xref: csiph.com fr.comp.lang.python:3128 Le 11/02/2019 à 07:27, Benoit Izac a écrit : > Bonjour, > > Le 10/02/2019 à 22:58, pehache a écrit dans le message >  : > >> a[i:j] qui inclut l'élement i mais exclut l'élément j, j'aimerais bien >> qu'on m'explique la logique ? > > Cela permet d'écrire (avec i <= k <= j) : > > a[i:k] + a[k:j] == a[i:j] > Il est vrai que a[i:k] + a[k+1:j] == a[i:j] serait par contre abominable :-) -- "...sois ouvert aux idées des autres pour peu qu'elles aillent dans le même sens que les tiennes.", ST sur fr.bio.medecine