Comments is used to tell people what something does, and can also disable the parts of program which you need to remove temporarily.
There are two ways to comment program:
# first comment
print "first comment"
'''multi-line
comment'''
print "multi-line comment"The character #(pound) can comment a line, and '''(triple quote) can comment multi-line.
本文介绍了在编程中使用注释的方法,包括单行注释和多行注释的应用场景及作用。了解如何正确地使用注释可以帮助提高代码的可读性和维护性。
413

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



