Python学习系列文章:👉 目录 👈
〇、概述
Python 注释有单行注释和多行注释两种,单行注释使用#
,多行注释可以使用 '''
或 """
。在 PyCharm 中,可以 Ctrl
和 /
键快速地进行单行注释。
一、单行注释(行注释)
① 语法
单行注释只能注释一行内容,语法如下:
Python学习系列文章:👉 目录 👈
Python 注释有单行注释和多行注释两种,单行注释使用#
,多行注释可以使用 '''
或 """
。在 PyCharm 中,可以 Ctrl
和 /
键快速地进行单行注释。
单行注释只能注释一行内容,语法如下: