Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentes Révision précédente Prochaine révision | Révision précédenteDernière révisionLes deux révisions suivantes |
python:bases:chaines [2022/09/25 10:08] – [Pour aller plus loin] phil | python:bases:chaines [2022/10/10 08:04] – [Pour aller plus loin] phil |
---|
//Exemple// | //Exemple// |
<code python *.py> | <code python *.py> |
| monscore = 1000 |
f"Vous avez obtenu {monscore} points" # Résultat : Vous avez obtenu 1000 points | f"Vous avez obtenu {monscore} points" # Résultat : Vous avez obtenu 1000 points |
</code> | </code> |
* <html><a href="https://realpython.com/replace-string-python/" target="_blank">How to Replace a String in Python</a></html> | * <html><a href="https://realpython.com/replace-string-python/" target="_blank">How to Replace a String in Python</a></html> |
* <html><a href="https://realpython.com/python-string-contains-substring/" target="_blank">How to Check if a Python String Contains a Substring</a></html> | * <html><a href="https://realpython.com/python-string-contains-substring/" target="_blank">How to Check if a Python String Contains a Substring</a></html> |
| * <html><a href="https://realpython.com/inherit-python-str/" target="_blank">Custom Python Strings: Inheriting From str vs UserString</a></html> |