Exercise 2: Comments And Pound Characters

来源:互联网 发布:js对象如何获取属性 编辑:程序博客网 时间:2024/04/29 16:36

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 commentprint "first comment"'''multi-line comment'''print "multi-line comment"

The character #(pound) can comment a line, and '''(triple quote) can comment multi-line.

原创粉丝点击