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

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.
主站蜘蛛池模板: 中卫市| 平阳县| 丰顺县| 莆田市| 阳新县| 平湖市| 晋州市| 北川| 丰都县| 德格县| 秭归县| 新安县| 青田县| 阳原县| 扶沟县| 峨边| 沈丘县| 元阳县| 信丰县| 故城县| 韶关市| 永年县| 彝良县| 涿州市| 桐柏县| 禄丰县| 潞西市| 景泰县| 三门县| 汾阳市| 霍山县| 东兰县| 盐源县| 靖远县| 新源县| 曲靖市| 奎屯市| 偏关县| 正镶白旗| 安义县| 弋阳县|