Deutsch English Français Italiano |
<64d799dc$0$6430$426a74cc@news.free.fr> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!cleanfeed1-b.proxad.net!nnrp5-1.free.fr!not-for-mail From: yves <yves@free.invalid> Subject: Re: API, dict et interrogations... Newsgroups: fr.comp.lang.python References: <ub7ej9$18ncg$1@dont-email.me> User-Agent: Pan/0.144 (Time is the enemy; 28ab3ba git.gnome.org/pan2) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Date: 12 Aug 2023 14:40:28 GMT Lines: 16 Message-ID: <64d799dc$0$6430$426a74cc@news.free.fr> Organization: Guest of ProXad - France NNTP-Posting-Date: 12 Aug 2023 16:40:28 CEST NNTP-Posting-Host: 37.67.144.156 X-Trace: 1691851228 news-3.free.fr 6430 37.67.144.156:22062 X-Complaints-To: abuse@proxad.net Bytes: 1108 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) @+ -- Yves