Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > fr.comp.lang.python > #3435
| Path | csiph.com!aioe.org!tTqkpX7q/zQujZ+pQ3+Itg.user.gioia.aioe.org.POSTED!not-for-mail |
|---|---|
| From | Dominique <zzz@aol.com.invalid> |
| Newsgroups | fr.comp.lang.python |
| Subject | Re: Débutant. Formatage de input. Python 3.8 |
| Date | Sun, 3 Jan 2021 11:44:14 +0100 |
| Organization | Aioe.org NNTP Server |
| Lines | 20 |
| Message-ID | <rss75u$1drr$1@gioia.aioe.org> (permalink) |
| References | <rsrglk$fe4$1@gioia.aioe.org> <87sg7ieade.fsf@izac.org> |
| NNTP-Posting-Host | tTqkpX7q/zQujZ+pQ3+Itg.user.gioia.aioe.org |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=utf-8; format=flowed |
| Content-Transfer-Encoding | 8bit |
| X-Complaints-To | abuse@aioe.org |
| User-Agent | Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.6.0 |
| X-Notice | Filtered by postfilter v. 0.9.2 |
| Content-Language | fr |
| Xref | csiph.com fr.comp.lang.python:3435 |
Show key headers only | 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 | Next — Previous in thread | Find similar
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