Warning: mysqli::__construct(): (HY000/1203): User howardkn already has more than 'max_user_connections' active connections in D:\Inetpub\vhosts\howardknight.net\al.howardknight.net\includes\artfuncs.php on line 21
Failed to connect to MySQL: (1203) User howardkn already has more than 'max_user_connections' active connectionsPath: ...!3.us.feeder.erje.net!feeder.erje.net!proxad.net!feeder1-2.proxad.net!cleanfeed3-a.proxad.net!nnrp6-1.free.fr!not-for-mail From: yves Subject: Re: Mon code est lourd Newsgroups: fr.comp.lang.python References: <62742832$0$22051$426a74cc@news.free.fr> <87zgjvvi8j.fsf@universite-de-strasbourg.fr.invalid> <627525b7$0$26300$426a74cc@news.free.fr> <87r156v407.fsf@universite-de-strasbourg.fr.invalid> 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: 06 May 2022 20:50:52 GMT Lines: 21 Message-ID: <62758a2c$0$26330$426a74cc@news.free.fr> Organization: Guest of ProXad - France NNTP-Posting-Date: 06 May 2022 22:50:52 CEST NNTP-Posting-Host: 89.226.117.233 X-Trace: 1651870252 news-1.free.fr 26330 89.226.117.233:39962 X-Complaints-To: abuse@proxad.net Bytes: 1515 Le Fri, 06 May 2022 21:46:00 +0200, Alain Ketterlin a écrit: > Je proposais d'utiliser à la place : > > yield (date.month, "LMMJVSD"[date.weekday()], date.day) > > (attention, weekday() ne suit pas la même convention que "%w" pour > strftime). > > C'est toi qui voit. Merci, je vais utiliser ta ligne de code. Mon objectif est d'obtenir sur écran un aspect (graphique) analogue à un calendrier carton (ces petits calendriers d'un format approximatif A4 qu'on trouve dans toutes les entreprises). @+ -- Yves