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

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.
主站蜘蛛池模板: 盐城市| 赤水市| 英德市| 苏尼特右旗| 双柏县| 玛沁县| 同心县| 孟连| 峨眉山市| 定边县| 枝江市| 澎湖县| 临桂县| 嵩明县| 福州市| 山丹县| 卢湾区| 宜良县| 湖州市| 林芝县| 静宁县| 玛多县| 广东省| 仙桃市| 海阳市| 桐梓县| 南召县| 定南县| 镇赉县| 满城县| 桦川县| 汉沽区| 靖远县| 衡阳县| 方山县| 徐闻县| 朔州市| 桦甸市| 平陆县| 光山县| 遂平县|