Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > fr.comp.lang.python > #4088
| Path | csiph.com!news.mixmin.net!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail |
|---|---|
| From | Dominique <zzz@aol.com> |
| Newsgroups | fr.comp.lang.python |
| Subject | Re: API, dict et interrogations... |
| Date | Sat, 12 Aug 2023 17:14:09 +0200 |
| Organization | A noiseless patient Spider |
| Lines | 19 |
| Message-ID | <ub87k0$1c5ej$1@dont-email.me> (permalink) |
| References | <ub7ej9$18ncg$1@dont-email.me> <64d799dc$0$6430$426a74cc@news.free.fr> |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset=UTF-8; format=flowed |
| Content-Transfer-Encoding | 8bit |
| Injection-Date | Sat, 12 Aug 2023 15:14:08 -0000 (UTC) |
| Injection-Info | dont-email.me; posting-host="1582612c29dfbed60bf3fc51ac537ab6"; logging-data="1447379"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18L+UiQOmVAjl/xIgbb8KfZmmsbWUuBN0A=" |
| User-Agent | Mozilla Thunderbird |
| Cancel-Lock | sha1:eApRqu+OO98koFURCy3cdq0kecg= |
| In-Reply-To | <64d799dc$0$6430$426a74cc@news.free.fr> |
| Content-Language | fr |
| Xref | csiph.com fr.comp.lang.python:4088 |
Show key headers only | View raw
Le 12/08/2023 à 16:40, yves a écrit :
> Le Sat, 12 Aug 2023 10:07:04 +0200, Dominique a écrit:
>
>> date=str(datetime.date.today()).split('-')
>> date[0],date[1],date[2]=date[2],date[1],date[0]
>
> On peut écrire ça comme ça, aussi :
>
> import datetime
>
> date=datetime.date.today().strftime("%d-%m-%Y")
> print(date)
Je ne connaissais pas. Merci Yves :)
--
Dominique
Esto quod es
Back to fr.comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar
API, dict et interrogations... Dominique <zzz@aol.com> - 2023-08-12 10:07 +0200
Re: API, dict et interrogations... yves <yves@free.invalid> - 2023-08-12 08:36 +0000
Re: API, dict et interrogations... Dominique <zzz@aol.com> - 2023-08-12 12:02 +0200
Re: API, dict et interrogations... yves <yves@free.invalid> - 2023-08-12 14:40 +0000
Re: API, dict et interrogations... Dominique <zzz@aol.com> - 2023-08-12 17:14 +0200
Re: API, dict et interrogations... Dominique <zzz@aol.com> - 2023-08-12 17:22 +0200
Re: API, dict et interrogations... yves <yves@free.invalid> - 2023-08-12 16:43 +0000
Re: API, dict et interrogations... Dominique <zzz@aol.com> - 2023-08-13 09:00 +0200
Re: API, dict et interrogations... yves <yves@free.invalid> - 2023-08-14 14:12 +0000
Re: API, dict et interrogations... Dominique <zzz@aol.com> - 2023-08-14 16:48 +0200
csiph-web