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


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

Re: Tricher au scrabble...

Path csiph.com!pasdenom.info!usenet-fr.net!news.trigofacile.com!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From Thierry Pinelli <olmia2b+news@gmail.com>
Newsgroups fr.comp.lang.python
Subject Re: Tricher au scrabble...
Date Thu, 7 Dec 2023 16:35:16 +0100
Organization A noiseless patient Spider
Lines 21
Message-ID <uksonl$1ae09$1@dont-email.me> (permalink)
References <uk4fm4$852n$1@dont-email.me> <recherche-20231128131821@ram.dialup.fu-berlin.de> <uk51rm$auel$2@dont-email.me> <656a1a3b$0$10088$426a74cc@news.free.fr> <656a1e57$0$10088$426a74cc@news.free.fr> <874jh1tlp1.fsf@gnus.org> <6570f414$0$27068$426a74cc@news.free.fr>
MIME-Version 1.0
Content-Type text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding 8bit
Injection-Date Thu, 7 Dec 2023 15:35:17 -0000 (UTC)
Injection-Info dont-email.me; posting-host="e52c22d4c7137b8c13c9fea680b279e3"; logging-data="1390601"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19HncioR7KdwxvtLufaS6mufzYuy1CSUkw="
User-Agent Mozilla Thunderbird
Cancel-Lock sha1:3xYbuNdBBYlq5WfyRKSLI5VviWU=
In-Reply-To <6570f414$0$27068$426a74cc@news.free.fr>
Content-Language fr
Xref csiph.com fr.comp.lang.python:4152

Show key headers only | View raw


Le 06/12/2023 à 23:22, yves a écrit :
> Le Sat, 02 Dec 2023 03:48:09 +0100, Michel a écrit:
> 
>>> 0.4 secondes sur mon ordi, quand même.
>>
>> Sur le mien 0.280. Mais en reprenant le même principe que pour le
>> scrabble, en chargeant le fichier dans une array par longueur de mot,
>> j'obtiens 0.170.
> 
> Oui, c'est clair que c'est mieux.
> 
>>          while line := fp.readline().rstrip():

> Tiens, je ne connaissais pas cet opérateur ( := ) ni cette syntaxe.

du bon vieux Pascal

PPP Perl Python Pascal


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


Thread

Tricher au scrabble... Dominique <dominique.sextant@orange.fr.invalid> - 2023-11-28 11:33 +0100
  Re: Tricher au scrabble... Dominique <dominique.sextant@orange.fr.invalid> - 2023-11-28 16:39 +0100
  Re: Tricher au scrabble... Dominique <dominique.sextant@orange.fr.invalid> - 2023-11-28 16:43 +0100
    Re: Tricher au scrabble... yves <yves@free.invalid> - 2023-12-01 17:39 +0000
      Re: Tricher au scrabble... yves <yves@free.invalid> - 2023-12-01 17:56 +0000
        Re: Tricher au scrabble... Michel <michel@domain.invalid> - 2023-12-02 03:48 +0100
          Re: Tricher au scrabble... yves <yves@free.invalid> - 2023-12-06 22:22 +0000
            Re: Tricher au scrabble... Michel <michel@domain.invalid> - 2023-12-07 10:28 +0100
            Re: Tricher au scrabble... Thierry Pinelli <olmia2b+news@gmail.com> - 2023-12-07 16:35 +0100
            Re: Tricher au scrabble... Thierry Pinelli <olmia2b+news@gmail.com> - 2023-12-07 17:52 +0100
            Re: Tricher au scrabble... yves <yves@free.invalid> - 2023-12-07 18:00 +0000
            Re: Tricher au scrabble... yves <yves@free.invalid> - 2023-12-07 18:07 +0000
  Re: Tricher au scrabble... yves <yves@free.invalid> - 2023-11-28 16:05 +0000
    Re: Tricher au scrabble... yves <yves@free.invalid> - 2023-11-28 16:17 +0000
      Re: Tricher au scrabble... Dominique <dominique.sextant@orange.fr.invalid> - 2023-11-29 05:55 +0100
    Re: Tricher au scrabble... yves <yves@free.invalid> - 2023-11-28 20:16 +0000
  Re: Tricher au scrabble... Michel <michel@domain.invalid> - 2023-11-28 17:52 +0100
    Re: Tricher au scrabble... Dominique <dominique.sextant@orange.fr.invalid> - 2023-11-29 05:57 +0100
  Re: Tricher au scrabble... Michel <michel@domain.invalid> - 2023-11-28 19:23 +0100

csiph-web