« Python : Formater les chaînes de caractères » : différence entre les versions
De www.yakakliker.org
(Page créée avec « === f-strings === <syntaxhighlight lang="python3"> age = 42 prenom = 'Paul' print(f'Je m\'appelle {prenom} et j\'ai {age} ans') </syntaxhighlight><syntaxhighlight lang="python3"> print(f"Le minimum est {min(-1, 2, 4, -3)}") # Le minimum est -3 </syntaxhighlight> Catégorie:Python Catégorie:Scripts ») |
Aucun résumé des modifications |
||
Ligne 11 : | Ligne 11 : | ||
[[Catégorie:Python]] | [[Catégorie:Python]] | ||
[[Catégorie:Scripts]] | [[Catégorie:Scripts]] | ||
<html> | |||
<a href="https://www.compteurdevisite.com" title="compteur web gratuit sans pub"><img src="https://counter6.optistats.ovh/private/compteurdevisite.php?c=b4epghealnwlf7wuq7gn3ygll9aywrfx" border="0" title="compteur web gratuit sans pub" alt="compteur web gratuit sans pub"></a> | |||
</html> |