Diferències
Ací es mostren les diferències entre la revisió seleccionada i la versió actual de la pàgina.
| Ambdós costats versió prèvia Revisió prèvia Següent revisió | Revisió prèvia | ||
| development:python:strings [23/02/2024 03:27] – [string formatting] mate | development:python:strings [10/10/2024 00:53] (actual) – [f-strings (Literal String Interpolation)] mate | ||
|---|---|---|---|
| Línia 1: | Línia 1: | ||
| = Python strings | = Python strings | ||
| + | {{tag> | ||
| == comp | == comp | ||
| * Exact match (equality comparison): | * Exact match (equality comparison): | ||
| Línia 31: | Línia 32: | ||
| </ | </ | ||
| Backslash Cannot be used in format string directly. | Backslash Cannot be used in format string directly. | ||
| - | <code python | + | <code python error> |
| f" | f" | ||
| </ | </ | ||
| - | <code python | + | <code python correcto> |
| newline = ord(' | newline = ord(' | ||