热线电话:13121318867

登录
2019-05-09 阅读量: 788
python如何使用多行注释

多行字符串作为注释:Python多行注释是注释(""")每一端的分隔符中包含的一段文本。同样,分隔符之间不应有空格(""")。当评论文本不适合一行时,它们很有用;因此需要跨越线。多行注释或段落可作为阅读代码的其他人的文档。请参阅以下代码片段,演示多行注释:


"""

This would be a multiline comment in Python that

spans several lines and describes geeksforgeeks.

A Computer Science portal for geeks. It contains

well written, well thought

and well-explained computer science

and programming articles,

quizzes and more.

"""

print("GeeksForGeeks")

0.0000
3
关注作者
收藏
评论(0)

发表评论

暂无数据
推荐帖子