अजगर बहु-लाइन स्ट्रिंग Literals

कोड उदाहरण

0
0

अजगर बहु-लाइन स्ट्रिंग Literals

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.

इसी तरह के पन्ने

उदाहरणों के साथ समान पृष्ठ

अन्य भाषाओं में

यह पृष्ठ अन्य भाषाओं में है

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