- 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!"
推薦閱讀
- Learning Single:page Web Application Development
- 基于粒計算模型的圖像處理
- Python科學計算(第2版)
- Apache ZooKeeper Essentials
- MySQL 8從入門到精通(視頻教學版)
- Scala Design Patterns
- Monitoring Elasticsearch
- 組態軟件技術與應用
- Python深度學習:模型、方法與實現
- 微服務架構深度解析:原理、實踐與進階
- Go語言精進之路:從新手到高手的編程思想、方法和技巧(2)
- Scala Data Analysis Cookbook
- CRYENGINE Game Development Blueprints
- 深入解析Java編譯器:源碼剖析與實例詳解
- 零基礎學C++(升級版)