Multi-Line Comments
Sometimes you have to write a really long comment. # will
only work across a single line, and while you could write a multi-line comment and start each line with #,
that can be a pain.
If you want to write a comment across multiple lines, you can include the whole block in a set of triple quotation marks, like so:
"""I'm a lumberjack and I'm okay
I sleep all night and I work all day!"""
本文详细介绍了如何在编程中使用多行注释及三引号注释来实现跨行注释,适用于多种编程语言。

2133

被折叠的 条评论
为什么被折叠?



