Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > fr.comp.lang.python > #3839
| Path | csiph.com!aioe.org!ZdDiA78OpGiAUPu/soa7tQ.user.46.165.242.91.POSTED!not-for-mail |
|---|---|
| From | Dominique <zzz@aol.com.invalid> |
| Newsgroups | fr.comp.lang.python |
| Subject | Re: Mon code est lourd |
| Date | Fri, 6 May 2022 06:40:53 +0200 |
| Organization | Aioe.org NNTP Server |
| Message-ID | <t528sl$1oog$1@gioia.aioe.org> (permalink) |
| References | <62742832$0$22051$426a74cc@news.free.fr> <87zgjvvi8j.fsf@universite-de-strasbourg.fr.invalid> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=UTF-8; format=flowed |
| Content-Transfer-Encoding | 8bit |
| Injection-Info | gioia.aioe.org; logging-data="58128"; posting-host="ZdDiA78OpGiAUPu/soa7tQ.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org"; |
| User-Agent | Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.1 |
| X-Notice | Filtered by postfilter v. 0.9.2 |
| Content-Language | fr |
| Xref | csiph.com fr.comp.lang.python:3839 |
Show key headers only | View raw
Le 05/05/2022 à 22:26, Alain Ketterlin a écrit :
> dic = { "{:02d}".format (i+1) : [] for i in range (12) }
Je ne connaissais pas du tout cette méthode pour formater un
dictionnaire. C'est très intéressant, merci :-)
Je découvre l'utilisation du d après avoir, par hasard, testé x
(hexadécimal) puis, bien sûr, o pour octal et b pour binaire.
Je comprends moins bien la sortie avec c et surtout au-delà de 8 :
'0\x08': [],
'0\t': [],
'0\n': [],
'0\x0b': [],
'0\x0c': []
Ce qu'il y a de bien avec Python, c'est que je n'en verrai jamais le
bout :-)
Dominique
Back to fr.comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar
Mon code est lourd yves <yves@free.invalid> - 2022-05-05 19:40 +0000
Re: Mon code est lourd yves <yves@free.invalid> - 2022-05-05 19:42 +0000
Re: Mon code est lourd yves <yves@free.invalid> - 2022-05-05 19:43 +0000
Re: Mon code est lourd yves <yves@free.invalid> - 2022-05-05 19:47 +0000
Re: Mon code est lourd yamo' <user@tld.invalid> - 2022-05-09 07:56 +0000
Re: Mon code est lourd yves <yves@free.invalid> - 2022-05-09 08:32 +0000
Re: Mon code est lourd Benoit Izac <use.reply.to@INVALID.ADDRESS> - 2022-05-05 22:12 +0200
Re: Mon code est lourd yves <yves@free.invalid> - 2022-05-06 13:22 +0000
Re: Mon code est lourd Alain Ketterlin <alain@universite-de-strasbourg.fr.invalid> - 2022-05-05 22:26 +0200
Re: Mon code est lourd Dominique <zzz@aol.com.invalid> - 2022-05-06 06:40 +0200
Re: Mon code est lourd Alain Ketterlin <alain@universite-de-strasbourg.fr.invalid> - 2022-05-06 11:30 +0200
Re: Mon code est lourd Dominique <zzz@aol.com.invalid> - 2022-05-06 15:43 +0200
Re: Mon code est lourd Eric Demeester <neuneu@potiron.invalid> - 2022-05-08 12:19 +0200
Re: Mon code est lourd yves <yves@free.invalid> - 2022-05-06 13:42 +0000
Re: Mon code est lourd Alain Ketterlin <alain@universite-de-strasbourg.fr.invalid> - 2022-05-06 21:46 +0200
Re: Mon code est lourd yves <yves@free.invalid> - 2022-05-06 20:50 +0000
csiph-web