1、单行注释,#
#单行注释 print("123")
#单行注释
print("123")
2、单引号注释,''' '''
''' 单引号 多行注释 ''' print('abc')
'''
单引号
多行注释
print('abc')
3、双引号注释,""" """
""" 双引号 多行注释 """ print(111)
"""
双引号
print(111)
Python基础语法 一、注释 Python中的注释有单行注释和多行注释: 1.1 单行注释 Python中单行注...
python注释单行注释 #这是注释内容多行注释 ''' 这是注释内容 ''' python一些保留字and,...
Python中的注释有单行注释和多行注释 Python中单行注释以 # 开头,例如: 多行注释用三个单引号 '''...
Python代码 注释 # 注释内容 # 订单模块 HTML代码 注释
1.1 单行注释 在python中,用 # 表示单行注释 1.2 多行注释 在python中,用 (两个)``` ...
确保对模块, 函数, 方法和行内注释使用正确的风格 Python中的注释有单行注释和多行注释: Python中单行...
Python3 注 确保对模块, 函数, 方法和行内注释使用正确的风格 Python中的注释有单行注释和多行注释:...
单行注释 Python3中单行注释以 # 开头举个栗子: 多行注释 Python3中多行注释用三个单引号 ''' ...
python 注释 python 变量命名规则
# coding: utf-8 # In[2]: #python注释方法"#"'''python多行注释三引号''...
本文标题:Python注释
本文链接:https://www.haomeiwen.com/subject/grvkyqtx.html
网友评论