[英]I want to comment my python code and i Don't know what is the symbol of multiple line comment in python
How do I make multi-lined comments in python?如何在 python 中进行多行评论?
My Code So Far:到目前为止我的代码:
print("Hello world")
print("Hello universe")
print("Hello everyone")
You can either paste #
at the beginning of each row:您可以在每行的开头粘贴#
:
#print("Hello world")
#print("Hello universe")
#print("Hello everyone")
Or use this syntax:或者使用以下语法:
"""print("Hello world")
print("Hello universe")
print("Hello everyone")"""
Python does not have a syntax for multi-line comments. Python 没有多行注释的语法。 The only thing you could do is comment on each and every line.您唯一可以做的就是对每一行进行评论。 Or you could do as Claudio said to use """Comments here""" for multi-lined comments.或者您可以像 Claudio 所说的那样使用““此处评论”””进行多行评论。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.