- 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!"
推薦閱讀
- GAE編程指南
- Java范例大全
- 測(cè)試驅(qū)動(dòng)開發(fā):入門、實(shí)戰(zhàn)與進(jìn)階
- Clojure for Domain:specific Languages
- WSO2 Developer’s Guide
- C語(yǔ)言程序設(shè)計(jì)
- Eclipse Plug-in Development:Beginner's Guide(Second Edition)
- Python機(jī)器學(xué)習(xí)實(shí)戰(zhàn)
- Building Serverless Applications with Python
- TMS320LF240x芯片原理、設(shè)計(jì)及應(yīng)用
- 機(jī)器學(xué)習(xí)微積分一本通(Python版)
- 零基礎(chǔ)學(xué)HTML+CSS
- Instant Apache Camel Messaging System
- 大學(xué)計(jì)算機(jī)應(yīng)用基礎(chǔ)(Windows 7+Office 2010)(IC3)
- 嵌入式C編程實(shí)戰(zhàn)