Wielowierszowe literały ciągów znaków języka Python

Przykłady kodu

0
0

Wielowierszowe literały ciągów znaków języka Python

Multi-line string literals can be created using triple delimiters (' single or " double)

'''This is
a multi-line string'''

OR

"""This is
a multi-line string"""

Be aware that non-visible characters such as newlines,
tabs, etc. are actually part of the string – basically
anything you type.

You can use escaped characters (e.g. \n, \t), use string formatting, etc.

A multi-line string is just a regular string.

Multi-line strings are not comments, although they can be used as such,
especially with special comments called docstrings.

Podobne strony

Podobne strony do przykłady

W innych językach

Ta strona jest w innych językach

Русский
..................................................................................................................
English
..................................................................................................................
Italiano
..................................................................................................................
Română
..................................................................................................................
한국어
..................................................................................................................
हिन्दी
..................................................................................................................
Français
..................................................................................................................
Türk
..................................................................................................................
Česk
..................................................................................................................
Português
..................................................................................................................
ไทย
..................................................................................................................
中文
..................................................................................................................
Español
..................................................................................................................
Slovenský
..................................................................................................................
Балгарскі
..................................................................................................................
Íslensk
..................................................................................................................