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

  • Learn Python in 7 Days
  • Mohit Bhaskar N. Das
  • 71字
  • 2021-07-09 20:40:21

Comments in Python

In Python, there are two types of comments--one is a single-line comment and the other is multiline comment. For a single-line comment, # is used, while for a multiline comment, triple quotes """ are used:

#This is a single line comment in Python

print "Hello World" #This is a single comment in Python

""" For multi-line
comment use three
double quotes
...
"""
print "Hello World!"
主站蜘蛛池模板: 大宁县| 朔州市| 固阳县| 天峻县| 同仁县| 遂溪县| 宜城市| 会昌县| 洪雅县| 通江县| 邵东县| 丽水市| 泰州市| 得荣县| 濮阳市| 河曲县| 田林县| 婺源县| 洛浦县| 新丰县| 台州市| 永寿县| 嫩江县| 汶上县| 哈密市| 扶余县| 平安县| 鸡泽县| 义乌市| 丹棱县| 开封县| 蓝山县| 九寨沟县| 三门县| 沁源县| 巴林右旗| 明溪县| 阳信县| 丰宁| 大同市| 尼勒克县|