- 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 LibGDX Game Development(Second Edition)
- Linux核心技術從小白到大牛
- Python從入門到精通(精粹版)
- Reactive Programming With Java 9
- Symfony2 Essentials
- Go并發(fā)編程實戰(zhàn)
- RISC-V體系結構編程與實踐(第2版)
- PySpark Cookbook
- Swift 4 Protocol-Oriented Programming(Third Edition)
- CoffeeScript Application Development Cookbook
- 透視C#核心技術:系統(tǒng)架構及移動端開發(fā)
- WCF編程(第2版)
- PHP典型模塊與項目實戰(zhàn)大全
- Python編程基礎與數(shù)據分析
- Testing Practitioner Handbook