有
"""hello"""
"""world"""
#helloworld
print(__doc__)
"""hahahah"""
print(__doc__)
输出
即print(__doc__)
语句的作用是:打印该语句前面但离得最近的那个大段注释
(也叫说明文档
)。""""""
范围内的叫做大段注释,#
是单行注释。
有
"""hello"""
"""world"""
#helloworld
print(__doc__)
"""hahahah"""
print(__doc__)
输出
即print(__doc__)
语句的作用是:打印该语句前面但离得最近的那个大段注释
(也叫说明文档
)。""""""
范围内的叫做大段注释,#
是单行注释。