1、英文状态下使用单引号”””。
''' python注释代码1 python注释代码2 python注释代码3 python注释代码4 '''
2、英文状态下使用双引号“”。
""" python注释代码1 python注释代码2 python注释代码3 python注释代码4 """
3、选中单行或者多行,使用快捷键 Ctrl+/。被注释的代码,程序在执行的时候会直跳过。
#python注释代码1 #python注释代码2 #python注释代码3 #python注释代码4 注意:被注释的代码,程序在执行的时候会直跳过。
以上就是python多行注释的方法整理,希望对大家有所帮助。更多Python学习指路:Python基础教程