Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > fr.comp.lang.python > #3435

Re: Débutant. Formatage de input. Python 3.8

From Dominique <zzz@aol.com.invalid>
Newsgroups fr.comp.lang.python
Subject Re: Débutant. Formatage de input. Python 3.8
Date 2021-01-03 11:44 +0100
Organization Aioe.org NNTP Server
Message-ID <rss75u$1drr$1@gioia.aioe.org> (permalink)
References <rsrglk$fe4$1@gioia.aioe.org> <87sg7ieade.fsf@izac.org>

Show all headers | View raw


Le 03/01/2021 à 08:40, Benoit Izac a écrit :

> Oui, ça s'appelle les f-strings, ça a été introduit avec la version 3.6
> de Python :
> 
> <https://docs.python.org/fr/3/tutorial/inputoutput.html#formatted-string-literals>
> 
> input(f'Donnez la valeur n°{x}')
> 
> NB : Ce n'est pas spécifique à input().
> 

Ah oui, c'est ça. Merci beaucoup, j'avais oublié.

Et bonne année :-)

-- 
Dominique
Courriel : dominique point sextant ate orange en France
Esto quod es

Back to fr.comp.lang.python | Previous | NextPrevious in thread | Find similar


Thread

Débutant. Formatage de input. Python 3.8 Dominique <zzz@aol.com.invalid> - 2021-01-03 05:20 +0100
  Re: Débutant. Formatage de input. Python 3.8 Benoit Izac <use.reply.to@INVALID.ADDRESS> - 2021-01-03 08:40 +0100
    Re: Débutant. Formatage de input. Python 3.8 Dominique <zzz@aol.com.invalid> - 2021-01-03 11:44 +0100

csiph-web