Python Multi-Linha Literais De Seqüência De Caracteres

Exemplos de código

0
0

Python Multi-Linha Literais De Seqüência De Caracteres

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.

Páginas relacionadas

Páginas semelhantes com exemplos

Em outros idiomas

Esta página está em outros idiomas

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