官术网_书友最值得收藏!

Triple quotes in Python

Python's triple quotes functionality for strings is used to span multiple lines, including newlines and tabs. The syntax for triple quotes consists of three consecutive single or double quotes. Refer to the following code: 

#!/usr/bin/python3

para_str = """ Python is a scripting language which was created by
Guido van Rossum in 1991, t which is used in various sectors such as Game Development, GIS Programming, Software Development, web development,
Data Analytics and Machine learning, System Scripting etc.
"""
print (para_str)

It produces the following output. Note the tabs and newlines:

Output:
Python is a scripting language which was created by
Guido van Rossum in 1991, which is used in various sectors such as
Game Development, GIS Programming, Software Development, web development,
Data Analytics and Machine learning, System Scripting etc.
主站蜘蛛池模板: 黄陵县| 高尔夫| 宣威市| 秭归县| 屯留县| 郯城县| 南陵县| 武穴市| 望谟县| 鄯善县| 高阳县| 阿拉尔市| 合作市| 仲巴县| 灵川县| 永平县| 新余市| 开封县| 溧阳市| 普陀区| 理塘县| 台东市| 孝感市| 邵东县| 宁陕县| 南木林县| 内江市| 双柏县| 射阳县| 灵台县| 樟树市| 波密县| 兴义市| 祁连县| 松江区| 铜陵市| 建宁县| 奉节县| 无棣县| 雷山县| 九寨沟县|