Path: ...!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail From: Dominique Newsgroups: fr.comp.lang.python Subject: =?UTF-8?Q?Re=3a_Pr=c3=a9sentation_d=27une_division_euclidienne=2e?= Date: Thu, 24 Nov 2022 03:59:54 +0100 Organization: A noiseless patient Spider Lines: 28 Message-ID: References: <637e29c8$0$3214$426a34cc@news.free.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Thu, 24 Nov 2022 02:59:54 -0000 (UTC) Injection-Info: reader01.eternal-september.org; posting-host="aaf7949b455625df26cef32660447895"; logging-data="532168"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19AvIUZD8ER5K+E9/X+Lh0JeBuZhdmjYeY=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.5.0 Cancel-Lock: sha1:x0lbnWuqY+D+JIpLXbxZSo4v7fk= Content-Language: fr In-Reply-To: Bytes: 1779 Le 23/11/2022 à 20:17, Olivier Miakinen a écrit : > Le 23/11/2022 16:10, Dominique a écrit : >>> >>> >>> from fractions import Fraction as F >>> >>> >>> >>> F(15,10) >>> Fraction(3, 2) >> >> Ça ne correspond pas véritablement à la présentation que je souhaitais >> (2/5,4/9...) > > Il suffit d'en faire un print() : > >>>> from fractions import Fraction as F >>>> F(15,10) > Fraction(3, 2) >>>> print(F(15,10)) > 3/2 > > Ah oui, ces présentations sont intéressantes. Merci, -- Dominique Courriel : dominique point sextant ate orange en France Esto quod es