注释
-
单行注释
-
多行注释
定义:注释就是一段说明文字,不会被执行,有利于合作交流
# 单行注释:
# This is a line of comments
# 多行注释有两种方式:
# 单引号:
'''
This is a line of comments
This is a line of comments
'''
# 双引号:
"""
This is a line of comments
This is a line of comments
单行注释
多行注释
定义:注释就是一段说明文字,不会被执行,有利于合作交流
# 单行注释:
# This is a line of comments
# 多行注释有两种方式:
# 单引号:
'''
This is a line of comments
This is a line of comments
'''
# 双引号:
"""
This is a line of comments
This is a line of comments