- 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!"
推薦閱讀
- 大話PLC(輕松動漫版)
- The Supervised Learning Workshop
- Python Data Analysis(Second Edition)
- PhoneGap Mobile Application Development Cookbook
- Learning OpenCV 3 Computer Vision with Python(Second Edition)
- Julia 1.0 Programming Complete Reference Guide
- 大學計算機基礎
- Elasticsearch Essentials
- C++程序設計
- 算法設計與分析:基于C++編程語言的描述
- Visual C++從入門到精通(第2版)
- Microsoft HoloLens By Example
- Node.js 6.x Blueprints
- Java核心編程
- 軟硬件綜合系統軟件需求建模及可靠性綜合試驗、分析、評價技術